fox32os/applications/fetcher/start.asm

87 lines
1.9 KiB
NASM
Raw Normal View History

2023-07-25 06:17:56 +02:00
opton
pop [terminalStreamPtr]
pop [arg0Ptr]
pop [arg1Ptr]
pop [arg2Ptr]
pop [arg3Ptr]
call Main
call end_current_task
GetNextWindowEvent:
push r8
call get_next_window_event
mov r8, eventArgs
mov [r8+0], r0
mov [r8+4], r1
mov [r8+8], r2
mov [r8+12], r3
mov [r8+16], r4
mov [r8+20], r5
mov [r8+24], r6
mov [r8+28], r7
pop r8
ret
2023-07-13 09:11:02 +02:00
IsRomDiskAvailable:
call is_romdisk_available
ifz mov r0, 1
ifnz mov r0, 0
ret
brk:
brk
ret
PortIn:
2023-07-13 02:32:28 +02:00
in r0, r0
ret
eventArgs: data.fill 0, 32
terminalStreamPtr: data.32 0
arg0Ptr: data.32 0
arg1Ptr: data.32 0
arg2Ptr: data.32 0
arg3Ptr: data.32 0
2023-07-13 09:11:02 +02:00
browserFileListFriendly:
data.32 browserFile0
data.32 browserFile1
data.32 browserFile2
data.32 browserFile3
data.32 browserFile4
data.32 browserFile5
data.32 browserFile6
data.32 browserFile7
data.32 browserFile8
data.32 browserFile9
data.32 browserFile10
data.32 browserFile11
browserFile0: data.fill 0, 13
browserFile1: data.fill 0, 13
browserFile2: data.fill 0, 13
browserFile3: data.fill 0, 13
browserFile4: data.fill 0, 13
browserFile5: data.fill 0, 13
browserFile6: data.fill 0, 13
browserFile7: data.fill 0, 13
browserFile8: data.fill 0, 13
browserFile9: data.fill 0, 13
browserFile10: data.fill 0, 13
browserFile11: data.fill 0, 13
2023-07-16 06:56:09 +02:00
browserMenuItemsRoot:
data.8 1 ; number of menus
data.32 menu_items_system_list data.32 menu_items_system_name ; pointer to menu list, pointer to menu name
menu_items_system_name:
data.8 6 data.strz "System" ; text length, text, null-terminator
menu_items_system_list:
data.8 1 ; number of items
data.8 7 ; menu width (usually longest item + 2)
data.8 5 data.strz "About" ; text length, text, null-terminator
#include "../../../fox32rom/fox32rom.def"
#include "../../fox32os.def"