Add some keyboard related stuff to the jump table and ROM def

This commit is contained in:
Ry 2022-10-10 18:53:18 -07:00
parent e3ec282185
commit 6cc4b18022
2 changed files with 13 additions and 0 deletions

View File

@ -9,6 +9,10 @@ wait_for_event: jmp [0xF0040010]
get_next_event: jmp [0xF0040014]
panic: jmp [0xF0040018]
get_mouse_button: jmp [0xF004001C]
scancode_to_ascii: jmp [0xF0040020]
shift_pressed: jmp [0xF0040024]
shift_released: jmp [0xF0040028]
caps_pressed: jmp [0xF004002C]
; generic drawing jump table
draw_str_generic: jmp [0xF0041000]
@ -103,3 +107,8 @@ const EVENT_TYPE_MENU_BAR_CLICK: 0x00000004
const EVENT_TYPE_MENU_UPDATE: 0x00000005
const EVENT_TYPE_MENU_CLICK: 0x00000006
const EVENT_TYPE_EMPTY: 0xFFFFFFFF
; keys
const KEY_LSHIFT: 0x2A
const KEY_RSHIFT: 0x36
const KEY_CAPS: 0x3A

View File

@ -181,6 +181,10 @@ get_rom_version:
data.32 get_next_event
data.32 panic
data.32 get_mouse_button
data.32 scancode_to_ascii
data.32 shift_pressed
data.32 shift_released
data.32 caps_pressed
; generic drawing jump table
org.pad 0xF0041000