pitch-dark/src/constants.a

41 lines
1.5 KiB
Plaintext
Raw Normal View History

;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
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
PTR = $02
SRC = $04
DEST = $06
SAVE = $08