From 436b126184902264fd35fe58e074762344f2051a Mon Sep 17 00:00:00 2001 From: ry755 Date: Fri, 11 Feb 2022 20:57:37 -0800 Subject: [PATCH] fox32rom: Reduce size from 32MiB to 512KiB There was no reason to reserve so much empty space. --- fox32rom.def | 38 +++++++++++++++++++------------------- main.asm | 14 +++++++------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/fox32rom.def b/fox32rom.def index 6256b03..3f8001a 100644 --- a/fox32rom.def +++ b/fox32rom.def @@ -1,31 +1,31 @@ ; fox32 rom routine definitions ; system jump table entries -system_vsync_handler: jmp [0xF1000000] -get_mouse_position: jmp [0xF1000004] -new_event: jmp [0xF1000008] -wait_for_event: jmp [0xF100000C] -get_next_event: jmp [0xF1000010] +system_vsync_handler: jmp [0xF0040000] +get_mouse_position: jmp [0xF0040004] +new_event: jmp [0xF0040008] +wait_for_event: jmp [0xF004000C] +get_next_event: jmp [0xF0040010] ; background jump table entries -draw_str_to_background: jmp [0xF1001000] -draw_font_tile_to_background: jmp [0xF1001004] -fill_background: jmp [0xF1001008] +draw_str_to_background: jmp [0xF0041000] +draw_font_tile_to_background: jmp [0xF0041004] +fill_background: jmp [0xF0041008] ; overlay jump table entries -draw_str_to_overlay: jmp [0xF1002000] -draw_font_tile_to_overlay: jmp [0xF1002004] -fill_overlay: jmp [0xF1002008] -find_overlay_covering_position: jmp [0xF100200C] -check_if_overlay_covers_position: jmp [0xF1002010] -check_if_enabled_overlay_covers_position: jmp [0xF1002014] +draw_str_to_overlay: jmp [0xF0042000] +draw_font_tile_to_overlay: jmp [0xF0042004] +fill_overlay: jmp [0xF0042008] +find_overlay_covering_position: jmp [0xF004200C] +check_if_overlay_covers_position: jmp [0xF0042010] +check_if_enabled_overlay_covers_position: jmp [0xF0042014] ; menu bar jump table entries -menu_bar_click_event: jmp [0xF1003000] -clear_menu_bar: jmp [0xF1003004] -draw_menu_bar_root_items: jmp [0xF1003008] -draw_submenu_items: jmp [0xF100300C] -close_submenu: jmp [0xF1003010] +menu_bar_click_event: jmp [0xF0043000] +clear_menu_bar: jmp [0xF0043004] +draw_menu_bar_root_items: jmp [0xF0043008] +draw_submenu_items: jmp [0xF004300C] +close_submenu: jmp [0xF0043010] ; event types const MOUSE_CLICK_EVENT_TYPE: 0x00000000 diff --git a/main.asm b/main.asm index ff98f65..7db5ff0 100644 --- a/main.asm +++ b/main.asm @@ -178,7 +178,7 @@ mount_boot_disk: ; data ; system jump table - org.pad 0xF1000000 + org.pad 0xF0040000 data.32 system_vsync_handler data.32 get_mouse_position data.32 new_event @@ -186,13 +186,13 @@ mount_boot_disk: data.32 get_next_event ; background jump table - org.pad 0xF1001000 + org.pad 0xF0041000 data.32 draw_str_to_background data.32 draw_font_tile_to_background data.32 fill_background ; overlay jump table - org.pad 0xF1002000 + org.pad 0xF0042000 data.32 draw_str_to_overlay data.32 draw_font_tile_to_overlay data.32 fill_overlay @@ -201,14 +201,14 @@ mount_boot_disk: data.32 check_if_enabled_overlay_covers_position ; menu bar jump table - org.pad 0xF1003000 + org.pad 0xF0043000 data.32 menu_bar_click_event data.32 clear_menu_bar data.32 draw_menu_bar_root_items data.32 draw_submenu_items data.32 close_submenu - org.pad 0xF1F00000 + org.pad 0xF004F000 font: #include_bin "font/unifont-thin.raw" @@ -253,5 +253,5 @@ menu_items_system_list: data.8 10 data.str "Mount Disk" data.8 0x00 ; text length, text, null-terminator data.8 4 data.str "Halt" data.8 0x00 ; text length, text, null-terminator - ; pad out to 32 MiB - org.pad 0xF2000000 + ; pad out to 512 KiB + org.pad 0xF0080000