2023-07-12 09:00:08 +02:00
|
|
|
pop [terminalStreamPtr]
|
|
|
|
pop [arg0Ptr]
|
2023-07-12 19:41:11 +02:00
|
|
|
pop [arg1Ptr]
|
|
|
|
pop [arg2Ptr]
|
|
|
|
pop [arg3Ptr]
|
2023-07-12 09:00:08 +02:00
|
|
|
|
|
|
|
call Main
|
|
|
|
call end_current_task
|
|
|
|
|
|
|
|
GetNextWindowEvent:
|
|
|
|
push r8
|
|
|
|
call get_next_window_event
|
|
|
|
mov r8, eventArgs
|
|
|
|
mov [r8], r0
|
|
|
|
add r8, 4
|
|
|
|
mov [r8], r1
|
|
|
|
add r8, 4
|
|
|
|
mov [r8], r2
|
|
|
|
add r8, 4
|
|
|
|
mov [r8], r3
|
|
|
|
add r8, 4
|
|
|
|
mov [r8], r4
|
|
|
|
add r8, 4
|
|
|
|
mov [r8], r5
|
|
|
|
add r8, 4
|
|
|
|
mov [r8], r6
|
|
|
|
add r8, 4
|
|
|
|
mov [r8], r7
|
|
|
|
pop r8
|
|
|
|
ret
|
|
|
|
|
|
|
|
brk:
|
|
|
|
brk
|
|
|
|
ret
|
|
|
|
|
2023-07-12 19:41:11 +02:00
|
|
|
PortIn:
|
|
|
|
push r1
|
|
|
|
in r1, r0
|
|
|
|
mov r0, r1
|
|
|
|
pop r1
|
|
|
|
ret
|
|
|
|
|
2023-07-12 09:00:08 +02:00
|
|
|
eventArgs: data.fill 0, 32
|
|
|
|
terminalStreamPtr: data.32 0
|
|
|
|
arg0Ptr: data.32 0
|
2023-07-12 19:41:11 +02:00
|
|
|
arg1Ptr: data.32 0
|
|
|
|
arg2Ptr: data.32 0
|
|
|
|
arg3Ptr: data.32 0
|
2023-07-12 09:00:08 +02:00
|
|
|
|
|
|
|
#include "../../../fox32rom/fox32rom.def"
|
|
|
|
#include "../../fox32os.def"
|