2022-01-27 07:21:21 +01:00
|
|
|
; fox32 rom routine definitions
|
|
|
|
|
|
|
|
; system jump table entries
|
2022-02-12 06:12:18 +01:00
|
|
|
get_rom_version: jmp [0xF0040000]
|
|
|
|
system_vsync_handler: jmp [0xF0040004]
|
|
|
|
get_mouse_position: jmp [0xF0040008]
|
|
|
|
new_event: jmp [0xF004000C]
|
|
|
|
wait_for_event: jmp [0xF0040010]
|
|
|
|
get_next_event: jmp [0xF0040014]
|
2022-01-27 07:21:21 +01:00
|
|
|
|
2022-02-22 06:15:16 +01:00
|
|
|
; generic drawing jump table
|
2022-02-13 05:42:37 +01:00
|
|
|
draw_str_generic: jmp [0xF0041000]
|
|
|
|
draw_font_tile_generic: jmp [0xF0041004]
|
2022-02-22 06:15:16 +01:00
|
|
|
draw_filled_rectangle_generic: jmp [0xF0041008]
|
2022-02-13 05:42:37 +01:00
|
|
|
|
2022-01-27 07:21:21 +01:00
|
|
|
; background jump table entries
|
2022-02-13 05:42:37 +01:00
|
|
|
fill_background: jmp [0xF0042000]
|
|
|
|
draw_str_to_background: jmp [0xF0042004]
|
|
|
|
draw_font_tile_to_background: jmp [0xF0042008]
|
2022-02-22 06:15:16 +01:00
|
|
|
draw_filled_rectangle_to_background: jmp [0xF004200C]
|
2022-01-27 07:21:21 +01:00
|
|
|
|
|
|
|
; overlay jump table entries
|
2022-02-13 05:42:37 +01:00
|
|
|
fill_overlay: jmp [0xF0043000]
|
|
|
|
draw_str_to_overlay: jmp [0xF0043004]
|
|
|
|
draw_font_tile_to_overlay: jmp [0xF0043008]
|
2022-02-22 06:15:16 +01:00
|
|
|
draw_filled_rectangle_to_overlay: jmp [0xF004300C]
|
|
|
|
find_overlay_covering_position: jmp [0xF0043010]
|
|
|
|
check_if_overlay_covers_position: jmp [0xF0043014]
|
|
|
|
check_if_enabled_overlay_covers_position: jmp [0xF0043018]
|
2022-01-27 07:21:21 +01:00
|
|
|
|
|
|
|
; menu bar jump table entries
|
2022-02-13 05:42:37 +01:00
|
|
|
menu_bar_click_event: jmp [0xF0044000]
|
|
|
|
clear_menu_bar: jmp [0xF0044004]
|
|
|
|
draw_menu_bar_root_items: jmp [0xF0044008]
|
2022-02-22 06:26:30 +01:00
|
|
|
draw_menu_items: jmp [0xF004400C]
|
|
|
|
close_menu: jmp [0xF0044010]
|
2022-01-27 07:21:21 +01:00
|
|
|
|
|
|
|
; event types
|
2022-02-12 05:44:11 +01:00
|
|
|
const MOUSE_CLICK_EVENT_TYPE: 0x00000000
|
|
|
|
const MENU_BAR_CLICK_EVENT_TYPE: 0x00000001
|
2022-02-22 06:26:30 +01:00
|
|
|
const MENU_UPDATE_EVENT_TYPE: 0x00000002
|
|
|
|
const MENU_CLICK_EVENT_TYPE: 0x00000003
|
2022-02-12 05:44:11 +01:00
|
|
|
const EMPTY_EVENT_TYPE: 0xFFFFFFFF
|