data.a65 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .data
  2. ;don't anger the stack!
  3. dirptr_addr .word 0
  4. dirptr_bank .byt 0
  5. dirstart_addr .word 0
  6. dirstart_bank .byt 0
  7. dirend_addr .word 0
  8. dirend_bank .byt 0
  9. dirend_idx .word 0
  10. dirptr_idx .word 0
  11. dirptr_table .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  12. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  13. dirent_addr .word 0
  14. dirent_bank .byt 0
  15. dirent_type .byt 0
  16. dirend_onscreen .byt 0
  17. dirlog_idx .byt 0
  18. dirlog .word 0,0,0,0,0,0,0,0,0
  19. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  20. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  21. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  22. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  23. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  24. stack .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  25. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  26. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  27. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  28. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  29. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  30. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  31. .word 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  32. ;----------parameters for text output----------
  33. print_x .byt 0 ;x coordinate
  34. .byt 0
  35. print_y .byt 0 ;y coordinate
  36. .byt 0
  37. print_src .word 0 ;source data address
  38. print_bank .byt 0 ;source data bank
  39. print_pal .word 0 ;palette number for text output
  40. print_temp .word 0 ;work variable
  41. print_count .byt 0 ;how many characters may be printed?
  42. print_count_tmp .byt 0 ;work variable
  43. print_done .byt 0 ;how many characters were printed?
  44. ;----------parameters for dma----------
  45. dma_a_bank .byt 0
  46. dma_a_addr .word 0
  47. dma_b_reg .byt 0
  48. dma_len .word 0
  49. dma_mode .byt 0
  50. ;----------state information----------
  51. isr_done .byt 0 ; isr done flag
  52. bar_xl .byt 0 ; logical x position of select bar
  53. bar_yl .byt 0 ; logical y position of select bar
  54. bar_x .byt 0 ; pixel x position of select bar
  55. bar_y .byt 0 ; pixel y position of select bar
  56. bar_w .byt 0 ; bar width
  57. menu_state .byt 0 ; menu state (0=file select)
  58. menu_dirty .byt 0 ; menu dirty (e.g. after state change or when redraw is needed)
  59. menu_sel .word 0 ; selected item #
  60. cursor_x .byt 0 ; current cursor position (x)
  61. cursor_y .byt 0 ; current cursor position (y)
  62. fd_addr .word 0 ; address of current "file descriptor"
  63. fd_bank .byt 0 ; bank of current "file descriptor"
  64. fd_fnoff .word 0 ; offset of filename in file descriptor
  65. pad1mem .word 0
  66. pad1trig .word 0
  67. pad1delay .word 0
  68. ;----------menu layout/system constants (224/448)
  69. listdisp .word 0 ; number of displayable list entries
  70. textdmasize .word 0 ; number of bytes to copy each frame
  71. barstep .byt 0 ; step size for bar
  72. ;----------hdma tables in WRAM (must be stable when cartridge is cut off)
  73. hdma_pal .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  74. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  75. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  76. .byt 0,0,0,0
  77. hdma_cg_addr .byt 0
  78. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  79. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  80. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  81. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  82. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  83. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  84. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  85. .byt 0
  86. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  87. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  88. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  89. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  90. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  91. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  92. .byt 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  93. .byt 0
  94. hdma_mode .byt 0,0,0,0,0
  95. hdma_scroll .byt 0
  96. .byt 0,0,0,0
  97. .byt 0
  98. .byt 0,0,0,0
  99. .byt 0
  100. hdma_math .byt 0
  101. .byt 0,0
  102. .byt 0
  103. .byt 0,0
  104. .byt 0
  105. .byt 0,0
  106. .byt 0
  107. .byt 0,0
  108. .byt 0
  109. .byt 0,0
  110. .byt 0
  111. infloop .byt 0,0 ; to be filled w/ 80 FE