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
|
|
|
|
; 4000.~5BFF - WeeGUI (approximate end)
|
|
|
|
;~5C00.~71FF - program code (approximate start and end)
|
|
|
|
;~7200.~7FFF - program data (approximate start and end)
|
2018-02-09 01:38:26 +00:00
|
|
|
;
|
|
|
|
|
2018-03-30 17:43:48 +00:00
|
|
|
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
|
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
|