From ecfbbfb5b58aaba9f9265cb13b9fb4a914bdcf37 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 11 Sep 2019 19:04:49 -0700 Subject: 5647 - experimental support for swapping OS --- examples/ex1.subx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'examples/ex1.subx') diff --git a/examples/ex1.subx b/examples/ex1.subx index fae025c0..89ac8bce 100644 --- a/examples/ex1.subx +++ b/examples/ex1.subx @@ -8,14 +8,11 @@ # $ echo $? # 42 -== code 0x09000000 +== code Entry: -# syscall(exit, 42) +# exit(42) bb/copy-to-ebx 2a/imm32 # 42 in hex -b8/copy-to-eax 1/imm32/exit -cd/syscall 0x80/imm8 - -== data 0x0a000000 +e8/call syscall_exit/disp32 # . . vim:nowrap:textwidth=0 -- cgit 1.4.1-2-gfad0