prodos-drivers/inc/apple2.inc

98 lines
3.0 KiB
PHP
Raw Normal View History

2019-10-02 05:08:21 +00:00
;;; ============================================================
;;;
;;; More Apple II Symbols
;;;
;;; ============================================================
;;; ============================================================
;;; Soft Switches
;;; ============================================================
2019-10-05 01:10:01 +00:00
;;; I/O Soft Switches / Firmware
2019-10-02 05:08:21 +00:00
RAMRDOFF := $C002
RAMRDON := $C003
RAMWRTOFF := $C004
RAMWRTON := $C005
ALTZPOFF := $C008
ALTZPON := $C009
CLR80VID := $C00C
SET80VID := $C00D
RDALTZP := $C016
RD80STORE := $C018
RDPAGE2 := $C01C
BANKSEL := $C073 ; Select RamWorks bank
ROMIN2 := $C082 ; Read ROM; no write
2019-10-05 01:10:01 +00:00
ROMINWB1 := $C089 ; Read ROM; write RAM bank 1
2019-10-02 05:08:21 +00:00
RWRAM1 := $C08B ; Read/write RAM bank 1
;;; ============================================================
;;; I/O Registers (for Slot 2)
;;; ============================================================
TDREG := $C088 + $20 ; ACIA Transmit Register (write)
RDREG := $C088 + $20 ; ACIA Receive Register (read)
STATUS := $C089 + $20 ; ACIA Status/Reset Register
COMMAND := $C08A + $20 ; ACIA Command Register (read/write)
CONTROL := $C08B + $20 ; ACIA Control Register (read/write)
2019-10-05 01:10:01 +00:00
;;; ============================================================
;;; Other Slots
;;; ============================================================
SLOT3 := $C300
2019-10-02 05:08:21 +00:00
;;; ============================================================
;;; Monitor ROM routines
;;; ============================================================
INIT := $FB2F
2019-10-05 01:10:01 +00:00
SETTXT := $FB39
TABV := $FB5B
SETPWRC := $FB6F
VERSION := $FBB3
ZIDBYTE := $FBC0
2019-10-05 01:10:01 +00:00
BELL1 := $FBDD
2019-10-02 05:08:21 +00:00
HOME := $FC58
CLREOL := $FC9C
RDKEY := $FD0C
2019-10-02 05:08:21 +00:00
GETLN := $FD6A ; with prompt character
GETLN2 := $FD6F ; no prompt character
CROUT := $FD8E
PRBYTE := $FDDA
COUT := $FDED
COUT1 := $FDF0
2019-10-05 01:10:01 +00:00
SETINV := $FE80
2019-10-02 05:08:21 +00:00
SETNORM := $FE84
SETKBD := $FE89
SETVID := $FE93
BELL := $FF3A
2019-10-02 05:08:21 +00:00
;;; ============================================================
;;; Applesoft ROM routines
;;; ============================================================
;;; These require various ZP locations to be initialized.
LINPRNT := $ED24 ; print X,A as integer
2019-10-05 01:10:01 +00:00
;;; ============================================================
;;; Well-known RAM locations
;;; ============================================================
2019-10-02 05:08:21 +00:00
INPUT_BUFFER := $200
2019-10-05 01:10:01 +00:00
RESETVEC := $3F2
COL80HPOS := $57B
;;; ============================================================
;;; Applesoft Zero Page Locations
;;; ============================================================
TEMPPT := $52
TEMPST := $55
SHIFT_SIGN_EXT := $A4
SPEEDZ := $F1
FLASH_BIT := $F3