fox32rom: Starting versioning at 0.1.0
This commit is contained in:
parent
436b126184
commit
d814684968
11
fox32rom.def
11
fox32rom.def
|
@ -1,11 +1,12 @@
|
|||
; fox32 rom routine definitions
|
||||
|
||||
; system jump table entries
|
||||
system_vsync_handler: jmp [0xF0040000]
|
||||
get_mouse_position: jmp [0xF0040004]
|
||||
new_event: jmp [0xF0040008]
|
||||
wait_for_event: jmp [0xF004000C]
|
||||
get_next_event: jmp [0xF0040010]
|
||||
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]
|
||||
|
||||
; background jump table entries
|
||||
draw_str_to_background: jmp [0xF0041000]
|
||||
|
|
11
main.asm
11
main.asm
|
@ -2,6 +2,10 @@
|
|||
; fox32 starts here on reset
|
||||
org 0xF0000000
|
||||
|
||||
const FOX32ROM_VERSION_MAJOR: 0
|
||||
const FOX32ROM_VERSION_MINOR: 1
|
||||
const FOX32ROM_VERSION_PATCH: 0
|
||||
|
||||
const SYSTEM_STACK: 0x01FFF800
|
||||
const BACKGROUND_COLOR: 0xFF414C50
|
||||
|
||||
|
@ -159,6 +163,12 @@ mount_boot_disk:
|
|||
out r0, 0
|
||||
ret
|
||||
|
||||
get_rom_version:
|
||||
mov r0, FOX32ROM_VERSION_MAJOR
|
||||
mov r1, FOX32ROM_VERSION_MINOR
|
||||
mov r2, FOX32ROM_VERSION_PATCH
|
||||
ret
|
||||
|
||||
; code
|
||||
#include "boot.asm"
|
||||
#include "background.asm"
|
||||
|
@ -179,6 +189,7 @@ mount_boot_disk:
|
|||
|
||||
; system jump table
|
||||
org.pad 0xF0040000
|
||||
data.32 get_rom_version
|
||||
data.32 system_vsync_handler
|
||||
data.32 get_mouse_position
|
||||
data.32 new_event
|
||||
|
|
Loading…
Reference in New Issue
Block a user