mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2024-06-27 21:29:28 +00:00
42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
;license:MIT
|
|
;(c) 2018 by 4am
|
|
;
|
|
; 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
|
|
; 4000.~5BFF - WeeGUI (approximate end)
|
|
;~5C00.~71FF - program code (approximate start and end)
|
|
;~7200.~7FFF - program data (approximate start and end)
|
|
;
|
|
|
|
kInfoPaintWidth = 65 ; used by paintInfoView
|
|
kDescriptionPaintWidth = 78 ; used by paintDescriptionView
|
|
|
|
kGameInfoBuffer = $0800 ; used by LoadGameInfo
|
|
kProDOSFileBuffer = $1C00 ; 1K buffer for ProDOS MLI calls
|
|
kSystemAddress = $2000 ; used by LaunchInterpreter
|
|
kGlobalPrefsBuffer = $2000 ; used by LoadGlobalPreferences/SaveGlobalPreferences
|
|
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
|
|
MAGICRTS = $FF58 ; used to set overflow bit
|
|
|
|
; zero page
|
|
PTR = $02
|
|
SRC = $04
|
|
DEST = $06
|
|
ZPTR = $06 ; used by glue.zinfo because it's unused by okvs_append
|
|
SAVE = $08
|