Globals.asm 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. ; The global data items
  2. externdef screen_segment:word ;segment pointer to vga screen
  3. externdef item_list:dword ;item pointer list
  4. externdef tseq_frames:dword ;item pointer list
  5. externdef amouse_x:dword ;mouse status
  6. externdef amouse_y:dword
  7. externdef bmouse_b:dword
  8. externdef emouse_b:dword
  9. externdef mouse_b:dword
  10. externdef mouse_flag:dword
  11. externdef mouse_type2:dword
  12. externdef mouse_data2:dword
  13. externdef mouse_offset_x:dword
  14. externdef mouse_offset_y:dword
  15. externdef system_flags:dword ;collection of flags
  16. externdef original_screen_mode:byte ;screen mode on start up
  17. externdef logic_list_no:dword ;current logic list
  18. externdef cur_id:dword ;id being operated on
  19. externdef game_grid:dword ;screen block update data
  20. externdef backscreen:dword ;background screen
  21. externdef game_grids:dword ;pointer to walk grid data
  22. externdef anim_talk_table:dword ;table of talk anims
  23. externdef move_list:dword ;half hearted list for moving compacts accross rooms
  24. externdef start_of_save_data:dword ;start and end of data to save
  25. externdef end_of_save_data:byte
  26. externdef current_palette:dword ;palette on screen
  27. externdef mice_data:dword ;pointers to mice
  28. externdef object_mouse_data:dword
  29. externdef text_buffer:byte ;buffer for text
  30. externdef game_cycle:dword
  31. externdef relative_50hz_count:dword
  32. externdef game_50hz_count:dword
  33. externdef monitor_auto:byte
  34. externdef cur_char_set:dword
  35. ifdef with_screen_saver
  36. externdef sssss_count:dword
  37. endif
  38. externdef db_next_cycle:dword
  39. externdef show_debug_vars:dword
  40. externdef past_intro:dword
  41. externdef work_palette:dword
  42. externdef music_command_return_value:dword
  43. externdef screen:dword ;current screen on view
  44. externdef grid_convert_table:byte ;convert room numbers to grid numbers
  45. externdef current_section:dword ;Game section for save game
  46. externdef save_current_section:dword ;Game section
  47. externdef current_music:dword ;music currently playing
  48. externdef saved_current_music:dword ;music currently playing
  49. externdef replay_version:byte
  50. externdef current_version:byte
  51. externdef current_music:dword
  52. externdef restart_name_p:dword
  53. externdef stabilise_count:dword
  54. externdef save_game_text_file:dword
  55. externdef save_game_name:dword
  56. externdef logic_talk_button_release:dword
  57. externdef computer_speed:dword
  58. externdef voc_work_space:dword
  59. externdef reich_door_flag:dword
  60. externdef _force_sounds_off:dword
  61. externdef _language:dword
  62. externdef _cd_version:dword
  63. externdef random:dword
  64. externdef look_through:dword
  65. externdef _start_flag2:dword
  66. externdef config_file_present:dword
  67. externdef config_name:byte
  68. externdef c_text_no:dword
  69. externdef music_volume:dword
  70. ; used for cheats
  71. externdef foreman_friend:dword
  72. ; Pointers into the item list
  73. externdef data_0:dword
  74. externdef data_1:dword
  75. externdef data_2:dword
  76. externdef data_3:dword
  77. externdef data_4:dword
  78. externdef data_5:dword
  79. externdef data_6:dword
  80. externdef finger_print:byte
  81. externdef screen0_low_logic:word
  82. ; Compacts
  83. externdef foster:word
  84. externdef chuck_s4:word
  85. externdef sc4_floor:word
  86. externdef monitors_s4:word
  87. externdef reich_door_20:word
  88. ; Script variables
  89. externdef script_variables:dword
  90. externdef menu:dword
  91. externdef layer_0_id:dword
  92. externdef layer_1_id:dword
  93. externdef draw_list_no:dword
  94. externdef got_jammer:dword
  95. externdef card_status:dword
  96. externdef card_fix:dword
  97. externdef mouse_status:dword
  98. externdef got_sponsor:dword
  99. externdef new_safe_x:dword
  100. externdef tmousex:dword
  101. externdef new_safe_y:dword
  102. externdef tmousey:dword
  103. externdef safex:dword
  104. externdef safey:dword
  105. externdef special_item:dword
  106. externdef cursor_id:dword
  107. externdef text1:dword
  108. externdef get_off:dword
  109. externdef flag:dword
  110. externdef hit_id:dword
  111. externdef rnd:dword
  112. externdef mouse_list_no:dword
  113. externdef o0:dword
  114. externdef button:dword
  115. externdef result:dword
  116. externdef player_x:dword
  117. externdef player_y:dword
  118. externdef player_mood:dword
  119. externdef player_screen:dword
  120. externdef the_chosen_one:dword
  121. externdef text_rate:dword
  122. externdef menu_length:dword
  123. externdef cur_section:dword
  124. externdef scroll_offset:dword
  125. externdef object_held:dword
  126. externdef pointer_pen:dword
  127. externdef mouse_stop:dword
  128. externdef linc_digit_0:dword
  129. externdef linc_digit_1:dword
  130. externdef linc_digit_6:dword
  131. externdef knows_port:dword
  132. externdef enter_digits:dword
  133. externdef fs_command:dword
  134. externdef console_type:dword
  135. ; Code globals
  136. externdef change_text_sprite_colour:near
  137. externdef check_module_loaded:near
  138. externdef do_cross_mouse:near
  139. externdef do_screen_dump:near
  140. externdef do_timer_sequence:near
  141. externdef start_timer_sequence:near
  142. externdef anim_sequence:near
  143. externdef init_virgin:near
  144. externdef clear_screen:near
  145. externdef control_panel:near
  146. externdef display_text:near
  147. externdef do_random:near
  148. externdef draw_sprite:near
  149. externdef fetch_key:near
  150. externdef flip:near
  151. externdef flush_key_buffer:near
  152. externdef fn_add_human:near
  153. externdef fn_close_hand:near
  154. externdef fn_cross_mouse:near
  155. externdef fn_disk_mouse:near
  156. externdef fn_enter_section:near
  157. externdef fn_fade_down:near
  158. externdef fn_fade_up:near
  159. externdef fn_flush_buffers:near
  160. externdef fn_force_refresh:near
  161. externdef fn_get_grid_values:near
  162. externdef fn_kill_id:near
  163. externdef fn_leave_section:near
  164. externdef fn_no_human:near
  165. externdef fn_normal_mouse:near
  166. externdef fn_object_to_walk:near
  167. externdef fn_pause_fx:near
  168. externdef fn_restore_game:near
  169. externdef fn_remove_grid:near
  170. externdef fn_remove_object_from_walk:near
  171. externdef fn_send_sync:near
  172. externdef fn_set_font:near
  173. externdef fn_set_palette:near
  174. externdef fn_start_fx:near
  175. externdef fn_start_music:near
  176. externdef fn_stop_fx:near
  177. externdef fn_stop_music:near
  178. externdef fn_stop_voc:near
  179. externdef fn_suspend_fx:near
  180. externdef fn_text_kill2:near
  181. externdef fn_un_pause_fx:near
  182. externdef force_restart:near
  183. externdef frame:near
  184. externdef get_file_size:near
  185. externdef get_text:near
  186. externdef load_file:near
  187. externdef lock_mouse:near
  188. externdef unlock_mouse:near
  189. externdef load_grids:near
  190. externdef load_section_music:near
  191. externdef low_text_manager:near
  192. externdef music_command:near
  193. externdef my_free:near
  194. externdef my_malloc:near
  195. externdef _play_voc_data__Npcii:near
  196. externdef remove_mouse:near
  197. externdef restart_current_music:near
  198. externdef restore_file_lists:near
  199. externdef restore_saved_effects_0:near
  200. externdef restore_saved_effects_1:near
  201. externdef restore_mouse:near
  202. externdef re_create:near
  203. externdef run_get_off:near
  204. externdef c2_save_game_to_disk:near
  205. externdef script:near
  206. externdef set_palette:near
  207. externdef set_stabilise:near
  208. externdef sprite_engine:near
  209. externdef stabilise:near
  210. externdef stop_music:near
  211. externdef toggle_fx_kbd:near
  212. externdef toggle_ms_kbd:near
  213. externdef wait_50hz:near
  214. externdef wait_mouse_not_pressed:near
  215. externdef wait_relative:near
  216. externdef sprite_mouse:near
  217. externdef trash_all_fx:near
  218. externdef replace_mouse_cursors:near
  219. externdef vector_to_game:near
  220. externdef debug_loop:near
  221. externdef check_replay_key:near
  222. externdef check_replay_skip:near
  223. externdef _open_for_write__Npc:near
  224. externdef _open_for_read__Npc:near
  225. externdef restore_mouse_data:near
  226. externdef draw_new_mouse:near
  227. ;--------------------------------------------------------------------------------------------------
  228. ; Debugging globals
  229. ifdef debug_42
  230. externdef _debug_flag:dword
  231. externdef flip_grid:near
  232. externdef status_int:near
  233. externdef _debug_route_grid__Nps:near
  234. externdef _dump_file__Npcpci:near
  235. externdef debug_printf:near
  236. externdef fn_printf:near
  237. externdef tseq_frames:dword
  238. externdef replay_data_ptr:dword
  239. externdef last_speech_file:dword
  240. externdef last_speech_screen:dword
  241. externdef voc_chick:dword
  242. endif
  243. ifdef with_replay
  244. externdef _do_a_replay:dword
  245. externdef random:dword
  246. externdef joey:word
  247. externdef replay_data_len:dword
  248. externdef replay_data:dword
  249. externdef replay_data_ptr:dword
  250. externdef switch_replay_to_record:near
  251. externdef start_up_replay_file:near
  252. externdef replay_changed_screen:near
  253. externdef replay_record_event:near
  254. externdef check_replay_mouse:near
  255. externdef rewrite_replay_file:near
  256. externdef replay_say_something:near
  257. externdef replay_mouse_returned:near
  258. endif
  259. ;--------------------------------------------------------------------------------------------------
  260. ifdef mem_check
  261. ; Memory checking globals
  262. externdef backscreen:dword
  263. externdef loaded_file_list:dword
  264. externdef mouse_text_data:dword
  265. externdef saved_data:dword
  266. externdef module_list:dword
  267. externdef route_grid:dword
  268. externdef main_character_set:dword
  269. externdef control_char_set:dword
  270. externdef link_character_set:dword
  271. externdef status_ch_set:dword
  272. externdef k19:dword
  273. externdef green_slab:dword
  274. externdef mcode_table:dword
  275. externdef c2_save_game_texts:dword
  276. externdef dos_mem_allocated:dword
  277. externdef menu_bar:word
  278. externdef spp_control_panel:dword
  279. externdef spp_button:dword
  280. externdef spp_dn_btn:dword
  281. externdef spp_save_panel:dword
  282. externdef spp_yes_no:dword
  283. externdef spp_slide:dword
  284. externdef spp_slode:dword
  285. externdef c2_palette_data:dword
  286. externdef replay_data:dword
  287. externdef dinner_table_area:dword
  288. externdef pre_after_table_area:dword
  289. endif
  290. externdef exe_version:byte
  291. externdef save_version:byte
  292. externdef save_version_end:byte
  293. ifdef with_voc_editor
  294. externdef _voc_editor__Nv:near
  295. endif
  296. externdef voc_progress_report2:near
  297. externdef voc_progress:dword
  298. externdef noitcetorp_kcehc:near
  299.