2018-09-28 22:06:35 +00:00
|
|
|
; Copyright 2018 David Schmidt. All Rights Reserved.
|
|
|
|
; See the LICENSE.txt file for distribution terms (Apache 2.0).
|
|
|
|
;
|
|
|
|
; Adapted from Apple /// reference materials
|
2018-09-28 23:43:33 +00:00
|
|
|
;
|
2018-09-28 22:06:35 +00:00
|
|
|
|
|
|
|
*SYNOPSIS Symbols from hardware I/O areas
|
|
|
|
|
2018-09-29 04:10:37 +00:00
|
|
|
KBD @ $C000 ;last key pressed
|
|
|
|
KBDFLG @ $C008 ;
|
|
|
|
KBDSTRB @ $C010 ;RW keyboard strobe
|
|
|
|
SPKR @ $C030 ;RW toggle speaker (Apple II type)
|
2018-09-29 04:31:32 +00:00
|
|
|
SPKRIII @ $C040 ;RW beeps speaker (Apple /// type)
|
2018-09-29 04:10:37 +00:00
|
|
|
JOYRDY @ $C066 ;
|
|
|
|
CLOCK @ $C070 ;clock
|
|
|
|
PHASOFF @ $C080 ;
|
|
|
|
PHASON @ $C081 ;
|
|
|
|
MOTOROFF @ $C088 ;
|
|
|
|
MOTORON @ $C089 ;
|
|
|
|
DRV0EN @ $C08A ;
|
|
|
|
DRV1EN @ $C08B ;
|
|
|
|
Q6L @ $C08C ;
|
|
|
|
Q6H @ $C08D ;
|
|
|
|
Q7L @ $C08E ;
|
|
|
|
ACIASTAT @ $C0F1 ;status of ACIA
|
2018-09-28 22:06:35 +00:00
|
|
|
|
|
|
|
; Other hardware registers
|
2018-09-29 04:10:37 +00:00
|
|
|
Z_REG @ $FFD0 ;zero page register
|
|
|
|
D_DDRB @ $FFD2 ;data direction register B
|
|
|
|
D_DDRA @ $FFD3 ;data direction register A
|
2018-09-28 22:06:35 +00:00
|
|
|
TIMER1L @ $FFD8
|
|
|
|
TIMLATCH @ $FFD9
|
|
|
|
D_ACR @ $FFDB
|
|
|
|
D_PCR @ $FFDC
|
|
|
|
D_IFR @ $FFDD
|
|
|
|
D_IER @ $FFDE
|
2018-09-29 04:10:37 +00:00
|
|
|
E_REG @ $FFDF ;environment register
|
2018-09-28 22:06:35 +00:00
|
|
|
E_IORB @ $FFE0
|
|
|
|
E_DDRB @ $FFE2
|
|
|
|
E_DDRA @ $FFE3
|
|
|
|
E_ACR @ $FFEB
|
|
|
|
E_PCR @ $FFEC
|
|
|
|
E_IFR @ $FFED
|
|
|
|
E_IER @ $FFEE
|
2018-09-29 04:10:37 +00:00
|
|
|
B_REG @ $FFEF ;bank switch register
|