|
@@ -1,8 +1,15 @@
|
|
|
.data
|
|
|
;don't anger the stack!
|
|
|
-dirlog .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
|
|
|
+dirptr_addr .word 0
|
|
|
+dirptr_bank .byt 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
|
|
|
+ .word 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
|
|
|
+.byt 0
|
|
|
+dirlog .word 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
|
|
@@ -40,9 +47,14 @@ 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)
|
|
|
+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"
|
|
|
-file_path ; assembled current path
|
|
|
+fd_fnoff .word 0 ; offset of filename in file descriptor
|
|
|
+fd_data ; contents of a "file descriptor"
|
|
|
.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
|
|
@@ -51,7 +63,9 @@ file_path ; assembled current path
|
|
|
.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
|
|
|
;----------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
|