forked from fox32-arch/fox32os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fox32os.def
65 lines (54 loc) · 2.02 KB
/
fox32os.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
; fox32os routine definitions
; system jump table
get_os_version: jmp [0x00000810]
get_os_api_version: jmp [0x00000814]
get_current_disk_id: jmp [0x00000818]
set_current_disk_id: jmp [0x0000081C]
get_boot_disk_id: jmp [0x00000820]
; FXF jump table
parse_fxf_binary: jmp [0x00000910]
launch_fxf_from_disk: jmp [0x00000914]
launch_fxf_from_open_file: jmp [0x00000918]
; task jump table
new_task: jmp [0x00000A10]
yield_task: jmp [0x00000A14]
end_current_task: jmp [0x00000A18]
get_current_task_id: jmp [0x00000A1C]
get_unused_task_id: jmp [0x00000A20]
is_task_id_used: jmp [0x00000A24]
save_state_and_yield_task: jmp [0x00000A28]
sleep_task: jmp [0x00000A2C]
; memory jump table
allocate_memory: jmp [0x00000B10]
free_memory: jmp [0x00000B14]
; window jump table
new_window: jmp [0x00000C10]
destroy_window: jmp [0x00000C14]
new_window_event: jmp [0x00000C18]
get_next_window_event: jmp [0x00000C1C]
draw_title_bar_to_window: jmp [0x00000C20]
move_window: jmp [0x00000C24]
fill_window: jmp [0x00000C28]
get_window_overlay_number: jmp [0x00000C2C]
start_dragging_window: jmp [0x00000C30]
new_messagebox: jmp [0x00000C34]
get_active_window_struct: jmp [0x00000C38]
set_window_flags: jmp [0x00000C3C]
; VFS jump table
open: jmp [0x00000D10]
seek: jmp [0x00000D14]
tell: jmp [0x00000D18]
read: jmp [0x00000D1C]
write: jmp [0x00000D20]
get_size: jmp [0x00000D24]
; widget jump table
draw_widgets_to_window: jmp [0x00000E10]
handle_widget_click: jmp [0x00000E14]
; resource jump table
get_resource: jmp [0x00000F10]
; event types
const EVENT_TYPE_BUTTON_CLICK: 0x80000000
; widget types
const WIDGET_TYPE_BUTTON: 0x00000000
; window flags
const WINDOW_FLAG_ALWAYS_BACKGROUND: 1