fox32rom: Reduce size from 32MiB to 512KiB
There was no reason to reserve so much empty space.
This commit is contained in:
parent
292f460ce1
commit
436b126184
38
fox32rom.def
38
fox32rom.def
|
@ -1,31 +1,31 @@
|
||||||
; fox32 rom routine definitions
|
; fox32 rom routine definitions
|
||||||
|
|
||||||
; system jump table entries
|
; system jump table entries
|
||||||
system_vsync_handler: jmp [0xF1000000]
|
system_vsync_handler: jmp [0xF0040000]
|
||||||
get_mouse_position: jmp [0xF1000004]
|
get_mouse_position: jmp [0xF0040004]
|
||||||
new_event: jmp [0xF1000008]
|
new_event: jmp [0xF0040008]
|
||||||
wait_for_event: jmp [0xF100000C]
|
wait_for_event: jmp [0xF004000C]
|
||||||
get_next_event: jmp [0xF1000010]
|
get_next_event: jmp [0xF0040010]
|
||||||
|
|
||||||
; background jump table entries
|
; background jump table entries
|
||||||
draw_str_to_background: jmp [0xF1001000]
|
draw_str_to_background: jmp [0xF0041000]
|
||||||
draw_font_tile_to_background: jmp [0xF1001004]
|
draw_font_tile_to_background: jmp [0xF0041004]
|
||||||
fill_background: jmp [0xF1001008]
|
fill_background: jmp [0xF0041008]
|
||||||
|
|
||||||
; overlay jump table entries
|
; overlay jump table entries
|
||||||
draw_str_to_overlay: jmp [0xF1002000]
|
draw_str_to_overlay: jmp [0xF0042000]
|
||||||
draw_font_tile_to_overlay: jmp [0xF1002004]
|
draw_font_tile_to_overlay: jmp [0xF0042004]
|
||||||
fill_overlay: jmp [0xF1002008]
|
fill_overlay: jmp [0xF0042008]
|
||||||
find_overlay_covering_position: jmp [0xF100200C]
|
find_overlay_covering_position: jmp [0xF004200C]
|
||||||
check_if_overlay_covers_position: jmp [0xF1002010]
|
check_if_overlay_covers_position: jmp [0xF0042010]
|
||||||
check_if_enabled_overlay_covers_position: jmp [0xF1002014]
|
check_if_enabled_overlay_covers_position: jmp [0xF0042014]
|
||||||
|
|
||||||
; menu bar jump table entries
|
; menu bar jump table entries
|
||||||
menu_bar_click_event: jmp [0xF1003000]
|
menu_bar_click_event: jmp [0xF0043000]
|
||||||
clear_menu_bar: jmp [0xF1003004]
|
clear_menu_bar: jmp [0xF0043004]
|
||||||
draw_menu_bar_root_items: jmp [0xF1003008]
|
draw_menu_bar_root_items: jmp [0xF0043008]
|
||||||
draw_submenu_items: jmp [0xF100300C]
|
draw_submenu_items: jmp [0xF004300C]
|
||||||
close_submenu: jmp [0xF1003010]
|
close_submenu: jmp [0xF0043010]
|
||||||
|
|
||||||
; event types
|
; event types
|
||||||
const MOUSE_CLICK_EVENT_TYPE: 0x00000000
|
const MOUSE_CLICK_EVENT_TYPE: 0x00000000
|
||||||
|
|
14
main.asm
14
main.asm
|
@ -178,7 +178,7 @@ mount_boot_disk:
|
||||||
; data
|
; data
|
||||||
|
|
||||||
; system jump table
|
; system jump table
|
||||||
org.pad 0xF1000000
|
org.pad 0xF0040000
|
||||||
data.32 system_vsync_handler
|
data.32 system_vsync_handler
|
||||||
data.32 get_mouse_position
|
data.32 get_mouse_position
|
||||||
data.32 new_event
|
data.32 new_event
|
||||||
|
@ -186,13 +186,13 @@ mount_boot_disk:
|
||||||
data.32 get_next_event
|
data.32 get_next_event
|
||||||
|
|
||||||
; background jump table
|
; background jump table
|
||||||
org.pad 0xF1001000
|
org.pad 0xF0041000
|
||||||
data.32 draw_str_to_background
|
data.32 draw_str_to_background
|
||||||
data.32 draw_font_tile_to_background
|
data.32 draw_font_tile_to_background
|
||||||
data.32 fill_background
|
data.32 fill_background
|
||||||
|
|
||||||
; overlay jump table
|
; overlay jump table
|
||||||
org.pad 0xF1002000
|
org.pad 0xF0042000
|
||||||
data.32 draw_str_to_overlay
|
data.32 draw_str_to_overlay
|
||||||
data.32 draw_font_tile_to_overlay
|
data.32 draw_font_tile_to_overlay
|
||||||
data.32 fill_overlay
|
data.32 fill_overlay
|
||||||
|
@ -201,14 +201,14 @@ mount_boot_disk:
|
||||||
data.32 check_if_enabled_overlay_covers_position
|
data.32 check_if_enabled_overlay_covers_position
|
||||||
|
|
||||||
; menu bar jump table
|
; menu bar jump table
|
||||||
org.pad 0xF1003000
|
org.pad 0xF0043000
|
||||||
data.32 menu_bar_click_event
|
data.32 menu_bar_click_event
|
||||||
data.32 clear_menu_bar
|
data.32 clear_menu_bar
|
||||||
data.32 draw_menu_bar_root_items
|
data.32 draw_menu_bar_root_items
|
||||||
data.32 draw_submenu_items
|
data.32 draw_submenu_items
|
||||||
data.32 close_submenu
|
data.32 close_submenu
|
||||||
|
|
||||||
org.pad 0xF1F00000
|
org.pad 0xF004F000
|
||||||
font:
|
font:
|
||||||
#include_bin "font/unifont-thin.raw"
|
#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 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
|
data.8 4 data.str "Halt" data.8 0x00 ; text length, text, null-terminator
|
||||||
|
|
||||||
; pad out to 32 MiB
|
; pad out to 512 KiB
|
||||||
org.pad 0xF2000000
|
org.pad 0xF0080000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user