mirror of
https://github.com/mi57730/a2d.git
synced 2024-11-28 15:50:16 +00:00
disasm: labels for window/icon tables
This commit is contained in:
parent
ca15759620
commit
63a7bf730d
@ -23,6 +23,10 @@ DA_MAX_SIZE = DA_IO_BUFFER - DA_LOAD_ADDRESS
|
||||
;; Can't load DA past I/O Buffer at MAIN $1C00,
|
||||
;; but icon tables start at AUX $1B00 so can't clone there.
|
||||
|
||||
;;; Memory in AUX - $80 bytes for desktop and 8 windows. First byte is a
|
||||
;;; count, up to 127 icon entries. $1F80-$1FFF is a map of used/free icon
|
||||
;;; numbers.
|
||||
WINDOW_ICON_TABLES := $1B00
|
||||
|
||||
;; Quit routine signature/data
|
||||
copied_to_ramcard_flag := $D3FF
|
||||
|
@ -15088,11 +15088,11 @@ end:
|
||||
sta RAMWRTON
|
||||
lda #$00
|
||||
tax
|
||||
loop: sta $1F00,x ; window 8, icon use map
|
||||
sta $1E00,x ; window 6, 7
|
||||
sta $1D00,x ; window 4, 5
|
||||
sta $1C00,x ; window 2, 3
|
||||
sta $1B00,x ; window 0, 1 (0=desktop)
|
||||
loop: sta WINDOW_ICON_TABLES + $400,x ; window 8, icon use map
|
||||
sta WINDOW_ICON_TABLES + $300,x ; window 6, 7
|
||||
sta WINDOW_ICON_TABLES + $200,x ; window 4, 5
|
||||
sta WINDOW_ICON_TABLES + $100,x ; window 2, 3
|
||||
sta WINDOW_ICON_TABLES + $000,x ; window 0, 1 (0=desktop)
|
||||
inx
|
||||
bne loop
|
||||
sta RAMWRTOFF
|
||||
|
@ -1368,12 +1368,12 @@ saved_event_coords: DEFINE_POINT 0, 0
|
||||
|
||||
window_icon_count_table:
|
||||
.repeat 9,i
|
||||
.addr $1B00 + $80 * i
|
||||
.addr WINDOW_ICON_TABLES + $80 * i
|
||||
.endrepeat
|
||||
|
||||
window_icon_list_table:
|
||||
.repeat 9,i
|
||||
.addr $1B00 + $80 * i + 1
|
||||
.addr WINDOW_ICON_TABLES + $80 * i + 1
|
||||
.endrepeat
|
||||
|
||||
active_window_id:
|
||||
|
Loading…
Reference in New Issue
Block a user