grammer.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #define db .db
  2. #define callp(x) call call_previous_page \ .dw x
  3. #define calln(x) call call_next_page \ .dw x
  4. intmask = %00001011
  5. invlogic = 2
  6. gflags = 33
  7. tok_NegRelPtr = $EE
  8. TextPauseTime=appErr2+4 ;1
  9. StackCount = TextPauseTime+1 ;2
  10. StackLoc = StackCount+2 ;2
  11. OutputLogic = StackLoc+2 ;1
  12. ErrorLoc = OutputLogic+1 ;2
  13. SPSave = ErrorLoc+2 ;2
  14. parseError = asm_data_ptr1 ;2
  15. PBufPtr = 9311h ;2
  16. IntLoc = g_internal ;2
  17. IntCount = IntLoc+2 ;2 Counts down from IntMax, at zero, executes code at IntLoc, and resets to IntMax
  18. IntMax = IntCount+2 ;2
  19. PBufType = IntMax+2 ;1
  20. PBufRule = PBufType+1 ;2
  21. GrayMask = PBufRule+2 ;1
  22. graymode = GrayMask+1 ;1
  23. textmode = graymode+1 ;1
  24. ForBackUp = textmode+1 ;2
  25. seed1 = ForBackUp+2 ;2
  26. seed2 = seed1+2 ;2
  27. k_save = seed2+2
  28. k_count = k_save+1
  29. k_delay = k_count+1
  30. qmarkVar = k_delay+1
  31. ddd = qmarkVar+2 ;0
  32. VATPtr = ddd ; Used during the main menu
  33. VATPtr_next= VATPtr+2 ;
  34. main_menu_cursor = VATPtr_next+2
  35. main_menu_cursor_max= main_menu_cursor+1
  36. main_menu_index = main_menu_cursor_max+1
  37. mode_menu_header_RAM= main_menu_index+2
  38. mode_menu_scrap = mode_menu_header_RAM+5
  39. vars = ddd ;used while compiling
  40. vars_count = vars+2 ;
  41. size_of_buffer = vars_count+2 ;
  42. start_of_prog = size_of_buffer+2 ;
  43. end_of_src = start_of_prog+2 ;
  44. data_top = end_of_src+2 ;
  45. end_of_buffer = data_top+2 ;
  46. buffer_top = end_of_buffer+2 ;
  47. in_head = buffer_top+2 ;
  48. out_head = in_head+2 ;
  49. floatstack_ptr = vars
  50. floatstack_bottom = vars+2
  51. floatstack_top = vars+2+32 ;Give room for 8 floats. I am a generous god.
  52. seedsingle0 = floatstack_top
  53. seedsingle1 = seedsingle0+4
  54. stack_base = seedsingle1+4
  55. stack_top = stack_base+2
  56. stack_ptr = stack_top+2
  57. input_base = stack_ptr+2
  58. input_size = input_base+2
  59. vfont_index = input_size+2 ;8 bytes
  60. module_count= vfont_index+8
  61. module0 = module_count+1
  62. module1 = module0+2
  63. module2 = module1+2
  64. module3 = module2+2
  65. module4 = module3+2
  66. buf_end = module4+2
  67. buf_top = buf_end+2
  68. ;tilemap RAM
  69. tilemap_base = buf_top+2
  70. tilemap_height = tilemap_base+2
  71. tilemap_width = tilemap_height+1
  72. sprite_select = tilemap_width+1
  73. tilemap_buf = sprite_select+2
  74. tilemap_sy = tilemap_buf+2
  75. tilemap_y = tilemap_sy+1
  76. tilemap_sx_mask = tilemap_y+1
  77. tilemap_x = tilemap_sx_mask+1
  78. tilemap_top = tilemap_x+2
  79. tilemap_bottom = tilemap_top+2
  80. tilemap_flags = tilemap_bottom+2
  81. spritesheet_ptr = tilemap_flags+2
  82. PBuf = appBackupScreen
  83. SetLinePix = ramCode
  84. TSA = tempSwapArea
  85. interruptLoc = 8A8Ah
  86. #define zlz_vars OP1
  87. #define ZLZ_MIN_RUN 4
  88. zlz_base = zlz_vars
  89. zlz_runstart = zlz_vars+2
  90. zlz_match_base= zlz_vars+4
  91. zlz_match_size= zlz_vars+6
  92. zlz_top = zlz_vars+8
  93. zlz_match_loc = zlz_vars+10
  94. zlz_head = zlz_vars+12
  95. zcomp_freq_table = saveSScreen
  96. zcomp_keymap = 8700h
  97. zcomp_vars = OP1
  98. zcomp_input_base = zcomp_vars
  99. zcomp_input_size = zcomp_vars+2
  100. zcomp_partition_len=zcomp_input_size+2
  101. zcomp_table_len = zcomp_partition_len+2
  102. zcomp_best_size = zcomp_table_len+2
  103. zcomp_part0_size = zcomp_best_size+3
  104. zcomp_part1_size = zcomp_part0_size+2