SpiderScript! (with a sample script)
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / helpers.asm
index 3797333..49b9bd8 100644 (file)
@@ -9,6 +9,7 @@
 [global _SysExit]\r
 [global _SysLoadBin]\r
 [global _SysUnloadBin]\r
+[global _SysSetFaultHandler]\r
 [global _open]\r
 [global _close]\r
 \r
@@ -77,3 +78,11 @@ _close:
        int 0xAC\r
        pop ebx\r
        ret\r
+\r
+_SysSetFaultHandler:\r
+       push ebx\r
+       mov eax, SYS_SETFAULTHANDLER\r
+       mov ebx, [esp+0x8]      ; File Descriptor\r
+       int 0xAC\r
+       pop ebx\r
+       ret\r

UCC git Repository :: git.ucc.asn.au