2022-05-22 01:59:15 +02:00
|
|
|
; fox32rom routine definitions
|
2022-01-27 07:21:21 +01:00
|
|
|
|
2022-05-22 01:59:15 +02:00
|
|
|
; system jump table
|
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-03-19 05:59:51 +01:00
|
|
|
panic: jmp [0xF0040018]
|
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]
|
2022-02-22 22:45:54 +01:00
|
|
|
draw_format_str_generic: jmp [0xF0041004]
|
|
|
|
draw_decimal_generic: jmp [0xF0041008]
|
2022-04-02 01:05:59 +02:00
|
|
|
draw_hex_generic: jmp [0xF004100C]
|
|
|
|
draw_font_tile_generic: jmp [0xF0041010]
|
2022-06-22 03:08:16 +02:00
|
|
|
draw_tile_generic: jmp [0xF0041014]
|
2022-06-25 03:27:06 +02:00
|
|
|
set_tilemap: jmp [0xF0041018]
|
|
|
|
draw_pixel_generic: jmp [0xF004101C]
|
|
|
|
draw_filled_rectangle_generic: jmp [0xF0041020]
|
2022-02-13 05:42:37 +01:00
|
|
|
|
2022-05-22 01:59:15 +02:00
|
|
|
; background jump table
|
2022-02-13 05:42:37 +01:00
|
|
|
fill_background: jmp [0xF0042000]
|
|
|
|
draw_str_to_background: jmp [0xF0042004]
|
2022-02-22 22:45:54 +01:00
|
|
|
draw_format_str_to_background: jmp [0xF0042008]
|
|
|
|
draw_decimal_to_background: jmp [0xF004200C]
|
2022-04-02 01:05:59 +02:00
|
|
|
draw_hex_to_background: jmp [0xF0042010]
|
|
|
|
draw_font_tile_to_background: jmp [0xF0042014]
|
2022-06-22 03:08:16 +02:00
|
|
|
draw_tile_to_background: jmp [0xF0042018]
|
|
|
|
draw_pixel_to_background: jmp [0xF004201C]
|
|
|
|
draw_filled_rectangle_to_background: jmp [0xF0042020]
|
2022-01-27 07:21:21 +01:00
|
|
|
|
2022-05-22 01:59:15 +02:00
|
|
|
; overlay jump table
|
2022-02-13 05:42:37 +01:00
|
|
|
fill_overlay: jmp [0xF0043000]
|
|
|
|
draw_str_to_overlay: jmp [0xF0043004]
|
2022-02-22 22:45:54 +01:00
|
|
|
draw_format_str_to_overlay: jmp [0xF0043008]
|
|
|
|
draw_decimal_to_overlay: jmp [0xF004300C]
|
2022-04-02 01:05:59 +02:00
|
|
|
draw_hex_to_overlay: jmp [0xF0043010]
|
|
|
|
draw_font_tile_to_overlay: jmp [0xF0043014]
|
2022-06-22 03:08:16 +02:00
|
|
|
draw_tile_to_overlay: jmp [0xF0043018]
|
|
|
|
draw_pixel_to_overlay: jmp [0xF004301C]
|
|
|
|
draw_filled_rectangle_to_overlay: jmp [0xF0043020]
|
2022-07-27 01:09:00 +02:00
|
|
|
check_if_overlay_covers_position: jmp [0xF0043024]
|
|
|
|
check_if_enabled_overlay_covers_position: jmp [0xF0043028]
|
2022-07-27 01:58:20 +02:00
|
|
|
enable_overlay: jmp [0xF004302C]
|
|
|
|
disable_overlay: jmp [0xF0043030]
|
|
|
|
move_overlay: jmp [0xF0043034]
|
|
|
|
resize_overlay: jmp [0xF0043038]
|
|
|
|
set_overlay_framebuffer_pointer: jmp [0xF004303C]
|
2022-01-27 07:21:21 +01:00
|
|
|
|
2022-05-22 01:59:15 +02:00
|
|
|
; menu bar jump table
|
2022-03-23 19:24:01 +01:00
|
|
|
enable_menu_bar: jmp [0xF0044000]
|
|
|
|
disable_menu_bar: jmp [0xF0044004]
|
|
|
|
menu_bar_click_event: jmp [0xF0044008]
|
|
|
|
clear_menu_bar: jmp [0xF004400C]
|
|
|
|
draw_menu_bar_root_items: jmp [0xF0044010]
|
|
|
|
draw_menu_items: jmp [0xF0044014]
|
|
|
|
close_menu: jmp [0xF0044018]
|
2022-03-23 19:30:17 +01:00
|
|
|
menu_update_event: jmp [0xF004401C]
|
2022-01-27 07:21:21 +01:00
|
|
|
|
2022-03-26 01:24:53 +01:00
|
|
|
; disk jump table
|
|
|
|
read_sector: jmp [0xF0045000]
|
|
|
|
write_sector: jmp [0xF0045004]
|
2022-05-17 01:31:16 +02:00
|
|
|
ryfs_open: jmp [0xF0045008]
|
|
|
|
ryfs_seek: jmp [0xF004500C]
|
|
|
|
ryfs_read: jmp [0xF0045010]
|
|
|
|
ryfs_read_whole_file: jmp [0xF0045014]
|
2022-06-23 23:15:52 +02:00
|
|
|
ryfs_get_size: jmp [0xF0045018]
|
2022-08-10 08:22:51 +02:00
|
|
|
ryfs_get_file_list: jmp [0xF004501C]
|
2022-08-31 01:27:22 +02:00
|
|
|
ryfs_tell: jmp [0xF0045020]
|
2022-03-26 01:24:53 +01:00
|
|
|
|
2022-03-26 02:04:07 +01:00
|
|
|
; memory copy/compare jump table
|
|
|
|
copy_memory_bytes: jmp [0xF0046000]
|
|
|
|
copy_memory_words: jmp [0xF0046004]
|
2022-04-24 01:47:17 +02:00
|
|
|
copy_string: jmp [0xF0046008]
|
|
|
|
compare_memory_bytes: jmp [0xF004600C]
|
|
|
|
compare_memory_words: jmp [0xF0046010]
|
2022-04-24 07:31:44 +02:00
|
|
|
compare_string: jmp [0xF0046014]
|
2022-05-02 02:59:54 +02:00
|
|
|
string_length: jmp [0xF0046018]
|
2022-03-26 02:04:07 +01:00
|
|
|
|
2022-05-02 03:01:10 +02:00
|
|
|
; integer jump table
|
|
|
|
string_to_int: jmp [0xF0047000]
|
|
|
|
|
2022-06-21 02:11:49 +02:00
|
|
|
; audio jump table
|
|
|
|
play_audio: jmp [0xF0048000]
|
|
|
|
stop_audio: jmp [0xF0048004]
|
|
|
|
|
2022-07-27 07:53:18 +02:00
|
|
|
; random number jump table
|
|
|
|
random: jmp [0xF0049000]
|
|
|
|
random_range: jmp [0xF0049004]
|
|
|
|
|
2022-01-27 07:21:21 +01:00
|
|
|
; event types
|
2022-04-16 23:59:19 +02:00
|
|
|
const EVENT_TYPE_MOUSE_CLICK: 0x00000000
|
2022-04-17 00:15:03 +02:00
|
|
|
const EVENT_TYPE_MOUSE_RELEASE: 0x00000001
|
2022-04-18 01:21:56 +02:00
|
|
|
const EVENT_TYPE_KEY_DOWN: 0x00000002
|
|
|
|
const EVENT_TYPE_KEY_UP: 0x00000003
|
|
|
|
const EVENT_TYPE_MENU_BAR_CLICK: 0x00000004
|
|
|
|
const EVENT_TYPE_MENU_UPDATE: 0x00000005
|
|
|
|
const EVENT_TYPE_MENU_CLICK: 0x00000006
|
2022-04-16 23:59:19 +02:00
|
|
|
const EVENT_TYPE_EMPTY: 0xFFFFFFFF
|