summaryrefslogtreecommitdiff
path: root/Source/Applications/ASMApps/syscalls.asm
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Applications/ASMApps/syscalls.asm')
-rw-r--r--Source/Applications/ASMApps/syscalls.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Applications/ASMApps/syscalls.asm b/Source/Applications/ASMApps/syscalls.asm
index cdd5cc6..1a634d7 100644
--- a/Source/Applications/ASMApps/syscalls.asm
+++ b/Source/Applications/ASMApps/syscalls.asm
@@ -1,7 +1,18 @@
[bits 32]
+%ifidn __OUTPUT_FORMAT__, bin
+
+%define MEM_ORIGIN 0x10000000
+
dd 0xFEEDBEEF ; magic number ^^
dd end - start
+dd MEM_ORIGIN
+
+; the ($-$$) permits not taking into account the header above
+[org MEM_ORIGIN - ($-$$)]
+
+%endif
%define SC_PUTCH 0xFFFFFF01
%define SC_SLEEP 0xFFFFFF02
+%define SC_WHEX 0xFFFFFF03