2018-02-09 01:38:26 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2018 by 4am
|
|
|
|
;
|
2018-04-15 15:22:00 +00:00
|
|
|
; YE OLDE GRAND UNIFIED MEMORY MAP
|
|
|
|
;
|
|
|
|
; 0800..1BFF - game description file (read)
|
|
|
|
; 1C00..1FFF - ProDOS 1K file buffer
|
|
|
|
; 2000..3FFF - DHGR artwork (read)
|
|
|
|
; ONBEYOND.SYSTEM (read + execute)
|
|
|
|
; ZINFO.SYSTEM (read + execute)
|
|
|
|
; global preferences file (read + write)
|
|
|
|
; 3F00..3FFF - gPathname
|
|
|
|
; kNullTerminatedBuffer
|
|
|
|
; gKey/gVal
|
2018-04-18 19:28:55 +00:00
|
|
|
; 4000.~5BFF - WeeGUI (approximate)
|
|
|
|
;~5C00.~73FF - program code (approximate)
|
|
|
|
;~7400...... - program data (approximate)
|
2018-02-09 01:38:26 +00:00
|
|
|
;
|
|
|
|
|
2019-01-12 18:49:47 +00:00
|
|
|
kPitchDarkBinaryAddress = $3F2D
|
2018-04-18 20:39:59 +00:00
|
|
|
|
2018-03-30 17:43:48 +00:00
|
|
|
kGameInfoBuffer = $0800 ; used by LoadGameInfo
|
|
|
|
kProDOSFileBuffer = $1C00 ; 1K buffer for ProDOS MLI calls
|
|
|
|
kSystemAddress = $2000 ; used by LaunchInterpreter
|
|
|
|
kGlobalPrefsBuffer = $2000 ; used by LoadGlobalPreferences/SaveGlobalPreferences
|
2018-07-06 22:29:15 +00:00
|
|
|
kCreditsBuffer = $2000 ; used by CreditsDialog
|
2018-03-30 17:43:48 +00:00
|
|
|
gPathname = $3F00 ; used by ResetPath/AddToPath
|
|
|
|
kNullTerminatedBuffer = $3F00 ; used by paintInfoView
|
|
|
|
gKeyLen = $3F00 ; used by ParseKeyValueText
|
|
|
|
gKey = $3F01
|
|
|
|
gValLen = $3F80
|
|
|
|
gVal = $3F81
|
|
|
|
WGInit = $4000 ; WeeGUI file load address and initialization function
|
2018-04-18 20:39:59 +00:00
|
|
|
NODEV = $BF10 ; means 'no device connected'
|
|
|
|
RAM32 = $BF26 ; S3,D2 /RAM device
|
|
|
|
DEVCNT = $BF31 ; ProDOS device count
|
|
|
|
DEVLST = $BF32 ; ProDOS device list
|
2018-04-19 14:05:48 +00:00
|
|
|
SPEAKER = $C030 ; used by SoftBell
|
|
|
|
WAIT = $FCA8
|
2018-04-01 23:18:17 +00:00
|
|
|
MAGICRTS = $FF58 ; used to set overflow bit
|
|
|
|
|
2018-04-01 23:12:39 +00:00
|
|
|
; zero page
|
2018-04-18 19:28:55 +00:00
|
|
|
PARAM = $00 ; used by PARAMS_ON_STACK macro, so basically everywhere
|
2018-04-01 23:12:39 +00:00
|
|
|
PTR = $02
|
|
|
|
SRC = $04
|
|
|
|
DEST = $06
|
2018-04-17 03:48:30 +00:00
|
|
|
ZPTR = $06 ; used by glue.zinfo because it's unused by okvs_append
|
2018-04-01 23:12:39 +00:00
|
|
|
SAVE = $08
|