A2osX/INC/ROM.II.txt
2023-11-04 15:42:28 +01:00

101 lines
4.3 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
AUTO 3,1
*--------------------------------------
* II ROM Calls
*--------------------------------------
ROM.INBUF .EQ $0200
ROM.BRKV .EQ $03F0
ROM.SOFTEV .EQ $03F2
ROM.PWREDUP .EQ $03F4
ROM.AMPJMP .EQ $03F5
ROM.USRJMP .EQ $03F8
ROM.NMIJMP .EQ $03FB
ROM.IRQV .EQ $03FE
ROM.MSLOT .EQ $07F8 $Cn, where n•slot using $C800
*--------------------------------------
ROM.PLOT .EQ $F800 PLOT LORES BLOCK
ROM.HLINE .EQ $F819 HORIZ LORES LINE
ROM.VLINE .EQ $F828 VERTICAL LORES LINE
ROM.CLRSCR .EQ $F832 CLEAR FULL LORES SCREEN
ROM.CLRTOP .EQ $FB36 CLEAR TOP. LORES SCREEN
ROM.GBSCALC .EQ $F847 LORES BASE CALCULATION
ROM.NEXTCOL .EQ $F85F INCREASE LORES COLOR BY 3
ROM.SETCOL .EQ $F864 SET LORES COLOR
ROM.SCRN .EQ $F871 READ LORES SCREEN COLOR
*--------------------------------------
ROM.PRNTAX .EQ $F941 OUTPUT A THEN X. AS HEX
ROM.PRBLNK .EQ $F948 OUTPUT 3 SPACES VIA BOOKS
ROM.PRBL2 .EQ $F94A OUTPUT X BLANKS VIA HOOKS
ROM.ROMIRQ .EQ $FA41 IRQ ENTRY
ROM.BREAKV .EQ $FA59 BREAK VECTOR
ROM.RESETV .EQ $FA62 RESET ENTRY
ROM.REGDSP .EQ $FAD7 DISPLAY WORKING REGISTERS
ROM.PREAD .EQ $FB1E READ GAME PADDLE X
ROM.INIT .EQ $FB2F INITIALIZE TEXT SCREEN
ROM.SETTXT .EQ $FB39 SET UP TEXT SCREEN (NOT 2E!)
ROM.SETGR .EQ $FB40 SET UP GRAPHICS SCREEN
ROM.SETWND .EQ $FB4B SET NORMAL TEXT WINDOW
ROM.TABV .EQ $FB5B
ROM.SETPWRC .EQ $FB6F
ROM.VERSION .EQ $FBB3 MONITOR ROM ID BYTE
ROM.ZIDBYTE .EQ $FBC0 MONITOR ROM ID BYTE
ROM.BASCALC .EQ $FBC1 CALCULATE TEXT BASE ADDRESS (NOT 2E!}
ROM.BELL1 .EQ $FBDD BEEP SPEAKER IF CTRL-G
ROM.BELL2 .EQ $FBE4 BEEP SPEAKER ONCE
ROM.ADVANCE .EQ $FBF4 TEXT CURSOR ONE TO RIGHT
ROM.VIDOUT .EQ $FBFD OUTPUT ASCII TO SCREEN ONLY
ROM.BS .EQ $FC10 BACKSPACE SCREEN
ROM.UP .EQ $FC1A MOVE SCREEN CURSOR UP ONE LINE
ROM.VTAB .EQ $FC22 VERTICAL SCREEN TAB USING CV
ROM.VTABA .EQ $FC24 VERTICAL SCREEN TAB USING A
ROM.ESC1 .EQ $FC66 PROCESS ESCAPE CURSOR MOVES
ROM.CLREOP .EQ $FC42 CLEAR TO END OF PAGE
ROM.HOME .EQ $FC58 CLEAR TEXT SCREEN AND HOME CURSOR
ROM.CR .EQ $FC62 CARRIAGE RETURN TO SCREEN
ROM.LF .EQ $FC66 LINEFEED TO SCREEN ONLY
ROM.SCROLL .EQ $FC70 SCROLL TEXT SCREEN UP ONE
ROM.CLREOL .EQ $FC9C CLEAR TEXT TO END OF LINE
ROM.WAIT .EQ $FCA8 TIME DELAY SET BY ACCUMULATOR
ROM.RDKEY .EQ $FD0C GET INPUT CHARACTER VIA HOOKS
ROM.KEYIN .EQ $FD1B READ THE APPLE KEYBOARD
ROM.RDCHAR .EQ $FD35 GET KEY AND PROCESS ESC A-F
ROM.CANCEL .EQ $FD62 CANCEL KEYBOARD LINE ENTRY
ROM.GETLNZ .EQ $FD67 CR THEN GET KEYBOARD INPUT LINE
ROM.GETLN .EQ $FD6A GET KEYBOARD INPUT LINE
ROM.GETLN1 .EQ $FD6F GET KBD INPUT, NO PROMPT
ROM.CROUT1 .EQ $FD8B CLEAR EOL THEN CR VIA BOOKS
ROM.CROUT .EQ $FD8E OUTPUT CR VIA HOOKS
ROM.PRBYTE .EQ $FDDA OUTPUT FULL A IN HEX TO HOOKS
ROM.PRHEX .EQ $FDE3 OUTPUT LOW A IN HEX TO HOOKS
ROM.COUT .EQ $FDED OUTPUT CHARACTER VIA HOOKS
ROM.COUTL .EQ $FDF0 OUTPUT CHARACTER TO SCREEN
ROM.IDROUTINE .EQ $FE1F RETURNS SYSTEM INFO
ROM.MOVE .EQ $FE2C MOVE BLOCK OF MEMORY
ROM.VERIFY .EQ $FE36 VERIFY BLOCK OF MEMORY
ROM.LIST .EQ $FE5E DISASSEMBLE 20 INSTRUCTIONS
ROM.LIST2 .EQ $FE63 DISASSEMBLE •A• INSTRUCTIONS
ROM.SETINV .EQ $FE80 PRINT INVERSE TEXT TO SCREEN
ROM.SETNORM .EQ $FE84 PRINT NORMAL TEXT TO SCREEN
ROM.SETKBD .EQ $FE89 GRAB INPUT HOOKS FOR KEYBOARD
ROM.SETVID .EQ $FE93 GRAB OUTPUT HOOKS FOR SCREEN
ROM.XBASIC .EQ $FEB0 GO BASIC, DESTROYING OLD
ROM.BASCON .EQ $FEB3 GO BASIC, CONTINUING OLD
ROM.TRACE .EQ $FEC2 START TRACING (OLD ROM ONLY!)
ROM.STEP .EQ $FEC4 SINGLE STEP (OLD ROM ONLY!)
ROM.WRITE .EQ $FECD WRITE TO CASSETTE TAPE
ROM.READ .EQ $FEF0 READ TO CASSETTE TAPE
ROM.PRERR .EQ $FF2D PRINT "ERR" TO OUTPUT HOOK
ROM.BELL .EQ $FF3A OUTPUT BELL TO HOOKS
ROM.IORESR .EQ $FF3F RESTORE ALL WORKING REGISTER
ROM.IOSAVE .EQ $FF4A SAVE ALL WORKING REGISTERS
ROM.RETURN .EQ $FF58 "GUARANTEED" RETURN
ROM.OLDRST .EQ $FF59 OLD RESET, NO AUTOSTART
ROM.MON .EQ $FF65 ENTER MONITOR AND BEEP SPEAKER
ROM.MONZ .EQ $FF69 ENTER MONITOR QUIETLY
ROM.GETNUM .EQ $FFA7 ASCII TO HEX IN 3E & 3F
*--------------------------------------
MAN
SAVE inc/rom.ii.i