115 lines
3.4 KiB
Plaintext
115 lines
3.4 KiB
Plaintext
.data
|
|
;don't anger the stack!
|
|
dirptr_addr .word 0
|
|
dirptr_bank .byt 0
|
|
dirstart_addr .word 0
|
|
dirstart_bank .byt 0
|
|
dirend_addr .word 0
|
|
dirend_bank .byt 0
|
|
dirend_idx .word 0
|
|
dirptr_idx .word 0
|
|
dirptr_table .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
dirent_addr .word 0
|
|
dirent_bank .byt 0
|
|
dirent_type .byt 0
|
|
dirend_onscreen .byt 0
|
|
dirlog_idx .byt 0
|
|
dirlog .word 0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
stack .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
|
|
;----------parameters for text output----------
|
|
print_x .byt 0 ;x coordinate
|
|
.byt 0
|
|
print_y .byt 0 ;y coordinate
|
|
.byt 0
|
|
print_src .word 0 ;source data address
|
|
print_bank .byt 0 ;source data bank
|
|
print_pal .word 0 ;palette number for text output
|
|
print_temp .word 0 ;work variable
|
|
print_count .byt 0 ;how many characters may be printed?
|
|
print_count_tmp .byt 0 ;work variable
|
|
print_done .byt 0 ;how many characters were printed?
|
|
;----------parameters for dma----------
|
|
dma_a_bank .byt 0
|
|
dma_a_addr .word 0
|
|
dma_b_reg .byt 0
|
|
dma_len .word 0
|
|
dma_mode .byt 0
|
|
|
|
;----------state information----------
|
|
isr_done .byt 0 ; isr done flag
|
|
bar_xl .byt 0 ; logical x position of select bar
|
|
bar_yl .byt 0 ; logical y position of select bar
|
|
bar_x .byt 0 ; pixel x position of select bar
|
|
bar_y .byt 0 ; pixel y position of select bar
|
|
bar_w .byt 0 ; bar width
|
|
menu_state .byt 0 ; menu state (0=file select)
|
|
menu_dirty .byt 0 ; menu dirty (e.g. after state change or when redraw is needed)
|
|
menu_sel .word 0 ; selected item #
|
|
cursor_x .byt 0 ; current cursor position (x)
|
|
cursor_y .byt 0 ; current cursor position (y)
|
|
fd_addr .word 0 ; address of current "file descriptor"
|
|
fd_bank .byt 0 ; bank of current "file descriptor"
|
|
fd_fnoff .word 0 ; offset of filename in file descriptor
|
|
pad1mem .word 0
|
|
pad1trig .word 0
|
|
pad1delay .word 0
|
|
;----------menu layout/system constants (224/448)
|
|
listdisp .word 0 ; number of displayable list entries
|
|
textdmasize .word 0 ; number of bytes to copy each frame
|
|
barstep .byt 0 ; step size for bar
|
|
|
|
;----------hdma tables in WRAM (must be stable when cartridge is cut off)
|
|
hdma_pal .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0
|
|
hdma_cg_addr .byt 0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
.byt 0
|
|
hdma_mode .byt 0,0,0,0,0
|
|
hdma_scroll .byt 0
|
|
.byt 0,0,0,0
|
|
.byt 0
|
|
.byt 0,0,0,0
|
|
.byt 0
|
|
hdma_math .byt 0
|
|
.byt 0,0
|
|
.byt 0
|
|
.byt 0,0
|
|
.byt 0
|
|
.byt 0,0
|
|
.byt 0
|
|
.byt 0,0
|
|
.byt 0
|
|
.byt 0,0
|
|
.byt 0
|
|
infloop .byt 0,0 ; to be filled w/ 80 FE
|