bible_doc/docs/syscalls_fx9860g.md

1.4 KiB

Some FX-9860g syscalls

How to call a syscall ?

The calling convention to access the system calls (syscall), is to jump to 0x80010070 with the syscall number in r0 :

{{includecode("files/code/do_syscall.S", "asm")}}


Syscalls table

Name ID
char * GetProductID() 0x0178
void GetProtocolVersion(char * out_str) 0x02ED
void System_GetOSVersion(char * version) (simlo) 0x02EE
void GetSystemInfo(char * out_str) 0x02EF
void GetEnvironmentID(char * out_str) 0x02F5
void GetCpuID(char * out_str) 0x02F6
void PrintFull(ID1, ID2, ID3) 0x0A51