mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-10 21:49:27 +00:00
460 lines
12 KiB
Plaintext
460 lines
12 KiB
Plaintext
; Copyright 2018 David Schmidt. All Rights Reserved.
|
|
; See the LICENSE.txt file for distribution terms (Apache 2.0).
|
|
;
|
|
; Sources:
|
|
; David T. Craig's disassembly projects
|
|
|
|
*SYNOPSIS Symbols from the Apple /// monitor ROM
|
|
|
|
;
|
|
; Zero page usage by monitor.
|
|
;
|
|
LMARGIN @ $58 ;left viewport margin
|
|
RMARGIN @ $59 ;right viewport margin
|
|
WINTOP @ $5A ;top of viewport
|
|
WINBTM @ $5B ;bottom of viewport
|
|
CH @ $5C ;
|
|
CV @ $5D ;
|
|
BAS4L @ $5E ;
|
|
BAS4H @ $5F ;
|
|
BAS8L @ $60 ;
|
|
BAS8H @ $61 ;
|
|
TBAS4L @ $62 ;
|
|
TBAS4H @ $63 ;
|
|
TBAS8L @ $64 ;
|
|
TBAS8H @ $65 ;
|
|
FORGND @ $66 ;
|
|
BKGND @ $67 ;
|
|
MODES @ $68 ;
|
|
CURSOR @ $69 ;
|
|
STACK @ $6A ;
|
|
PROMPT @ $6B ;
|
|
TEMPX @ $6C ;
|
|
TEMPY @ $6D ;
|
|
CSWL @ $6E ;
|
|
CSWH @ $6F ;
|
|
KSWL @ $70 ;
|
|
KSWH @ $71 ;
|
|
PCL @ $72 ;
|
|
PCH @ $73 ;
|
|
A1L @ $74 ;
|
|
A1H @ $75 ;
|
|
A2L @ $76 ;
|
|
A2H @ $77 ;
|
|
A3L @ $78 ;
|
|
A3H @ $79 ;
|
|
A4L @ $7A ;
|
|
A4H @ $7B ;
|
|
STATE @ $7C ;
|
|
YSAV @ $7D ;
|
|
INBUF @ $7E ;
|
|
|
|
;
|
|
; Zero page used by floppy.
|
|
;
|
|
HRDERRS @ $80 ;
|
|
IBSLOT @ $81 ;
|
|
IBDRVN @ $82 ;
|
|
IBTRK @ $83 ;
|
|
IBSECT @ $84 ;
|
|
IBBUFP @ $85 ;
|
|
IBCMD @ $87 ;
|
|
IBSTAT @ $88 ;
|
|
IBSMOD @ $89 ;
|
|
;CSUM @ $89 ;
|
|
IOBPDN @ $8A ;
|
|
IMASK @ $8B ;
|
|
CURTRK @ $8C ;
|
|
;DRVOTRK @ $85 ;
|
|
RETRYCNT @ $93 ;
|
|
SEEKCNT @ $94 ;
|
|
BUF @ $9B ;
|
|
ENVTEMP @ $9F ;
|
|
COUNT @ $95 ;
|
|
CKSUM @ $96 ;
|
|
CSSTV @ $97 ;
|
|
PRIOR @ $9D ;
|
|
TRKN @ $9E ;
|
|
MONTIMEL @ $99 ;
|
|
MONTIMEH @ $9A ;
|
|
TWOMEG @ $7F ;fast speed
|
|
SECT @ $98 ;
|
|
;TRACK @ $99 ;
|
|
;VOLUME @ $9A ;
|
|
|
|
;
|
|
; Floppy driver ROM routines.
|
|
;
|
|
REGRWTS @ $F000 ;
|
|
DRIVSEL @ $F035 ;
|
|
DRVWAIT @ $F041 ;
|
|
OK @ $F048 ;
|
|
MOTOF @ $F052 ;
|
|
CONWAIT @ $F054 ;
|
|
NODRIVERR @ $F064 ;
|
|
TRYTRK @ $F069 ;
|
|
TRYTRK2 @ $F07F ;
|
|
TRYADR @ $F083 ;
|
|
TRYADR2 @ $F08A ;
|
|
GOCAL1 @ $F0A6 ;
|
|
GOCAL @ $F0A7 ;
|
|
RDRIGHT @ $F0AC ;
|
|
RTTRK @ $F0C0 ;
|
|
CORRECTVOL @ $F0C4 ;
|
|
ALLDONE @ $F0E3 ;
|
|
DRVERR @ $F0E8 ;
|
|
HNDLERR @ $F0EA ;
|
|
ALDONE1 @ $F0EB ;
|
|
WRIT @ $F0F9 ;
|
|
MYSEEK @ $F104 ;
|
|
SEEK1 @ $F105 ;
|
|
GOSEEK @ $F115 ;
|
|
ALLOFF @ $F118 ;
|
|
NXOFF @ $F11A ;
|
|
SETTRK @ $F125 ;
|
|
CHKDRV @ $F12B ;
|
|
CHKDRV1 @ $F12D ;
|
|
CKDRTS @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NIBL2 @ $F323 ;
|
|
POST1 @ $F336 ;
|
|
POST2 @ $F338 ;
|
|
;POSTERR @ $F34C ;
|
|
SET1MEG @ $F34C ;
|
|
SEV @ $F354 ;
|
|
SEEK @ $F400 ;
|
|
SEEK2 @ $F40A ;
|
|
OUT @ $F41B ;
|
|
MINTST @ $F41F ;
|
|
MAXTST @ $F425 ;
|
|
STEP @ $F429 ;
|
|
STEP2 @ $F42B ;
|
|
SEEKEND @ $F444 ;
|
|
SETPHASE @ $F448 ;
|
|
CLRPHASE @ $F44A ;
|
|
SEEKRTS @ $F455 ;
|
|
MSWAIT @ $F456 ;
|
|
MSW1 @ $F458 ;
|
|
MSW2 @ $F461 ;
|
|
BLOCKIO @ $F479 ;
|
|
TRKSEC @ $F47E ;
|
|
QUIT @ $F49D ;
|
|
ANALOG @ $F4A8 ;
|
|
ANLOG1 @ $F4AB ;
|
|
GOODTIME @ $F4C4 ;
|
|
|
|
;
|
|
; Diagnostics ROM routines.
|
|
;
|
|
CHPG @ $F4CD ;
|
|
DISK1 @ $F513 ;
|
|
NXBYT @ $F524 ;
|
|
NXBIT @ $F526 ;
|
|
NOGOOD @ $F52A ;
|
|
CNTWR @ $F523 ;
|
|
PULBT @ $F53A ;
|
|
NOMEM @ $F548 ;
|
|
NMEM1 @ $F54F ;
|
|
NMEM2 @ $F562 ;
|
|
ERRLP @ $F575 ;
|
|
ERRLP1 @ $F593 ;
|
|
RAMWT1 @ $F5A1 ;
|
|
RAMWT2 @ $F5A5 ;
|
|
RAMWT4 @ $F5AD ;
|
|
ZP1 @ $F5BE ;
|
|
ZP2 @ $F5D4 ;
|
|
ZP3 @ $F5E2 ;
|
|
ROMTST @ $F5E7 ;
|
|
ROMTST1 @ $F5F2 ;
|
|
ROMTST2 @ $F5FE ;
|
|
VIATST @ $F60D ;
|
|
ACIA @ $F63E ;
|
|
ATD @ $F653 ;
|
|
ADCTST1 @ $F663 ;
|
|
ADCTST3 @ $F669 ;
|
|
ADCERR @ $F676 ;
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