6 %include "../libacess.so_src/syscalls.inc.asm"
\r
10 [global _SysLoadBin]
\r
11 [global _SysUnloadBin]
\r
15 ; void SysDebugV(char *fmt, va_list Args)
\r
22 mov eax, 0x100 ; User Debug
\r
23 mov ebx, [ebp+8] ; Format
\r
24 mov ecx, [ebp+12] ; Arguments
\r
25 mov edx, [ebp+16] ; Arguments
\r
26 mov edi, [ebp+20] ; Arguments
\r
27 mov esi, [ebp+24] ; Arguments
\r
37 mov eax, SYS_EXIT ; Exit
\r
38 mov ebx, [esp+0x8] ; Exit Code
\r
43 ; Uint SysLoadBin(char *path, Uint *entry)
\r
46 mov eax, SYS_LOADBIN ; SYS_LDBIN
\r
47 mov ebx, [esp+0x8] ; Path
\r
48 mov ecx, [esp+0xC] ; Entry
\r
53 ; Uint SysUnloadBin(Uint Base)
\r
56 mov eax, SYS_UNLOADBIN ; SYS_ULDBIN
\r
57 mov ebx, [esp+0x8] ; Base
\r
62 ; int close(char *name, int flags)
\r
66 mov ebx, [esp+0x8] ; Filename
\r
67 mov ecx, [esp+0xC] ; Flags
\r
72 ; void close(int fd)
\r
76 mov ebx, [esp+0x8] ; File Descriptor
\r