From 7dac9ade153d736b7a183d073d83b7a17b22b4cc Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 10 Jun 2020 23:09:30 -0700 Subject: 6507 - use syscall names everywhere --- apps/sigils.subx | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'apps/sigils.subx') diff --git a/apps/sigils.subx b/apps/sigils.subx index fd973fab..7c9ec805 100644 --- a/apps/sigils.subx +++ b/apps/sigils.subx @@ -99,8 +99,7 @@ $subx-sigils-main:interactive: # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $subx-sigils-main:end: - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # error messages considered: # *x + 34 -> error: base+disp addressing must be within '()' @@ -426,8 +425,7 @@ $subx-sigils:error1: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . syscall(exit, 1) bb/copy-to-ebx 1/imm32 - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # never gets here test-subx-sigils-passes-most-words-through: @@ -1803,8 +1801,7 @@ $next-word-or-expression:error1: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . syscall(exit, 1) bb/copy-to-ebx 1/imm32 - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # never gets here $next-word-or-expression:error2: @@ -1842,8 +1839,7 @@ $next-word-or-expression:error2: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . syscall(exit, 1) bb/copy-to-ebx 1/imm32 - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # never gets here test-next-word-or-expression: @@ -2571,8 +2567,7 @@ $parse-effective-address:error1: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . syscall(exit, 1) bb/copy-to-ebx 1/imm32 - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # never gets here $parse-effective-address:error2: @@ -2610,8 +2605,7 @@ $parse-effective-address:error2: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . syscall(exit, 1) bb/copy-to-ebx 1/imm32 - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # never gets here $parse-effective-address:error3: @@ -2649,8 +2643,7 @@ $parse-effective-address:error3: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . syscall(exit, 1) bb/copy-to-ebx 1/imm32 - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # never gets here $parse-effective-address:error4: @@ -2688,8 +2681,7 @@ $parse-effective-address:error4: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . syscall(exit, 1) bb/copy-to-ebx 1/imm32 - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # never gets here # assumes 'in' starts with a register name, and returns pointer to its code @@ -4161,8 +4153,7 @@ $next-hex-int:abort: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp # . syscall(exit, 1) bb/copy-to-ebx 1/imm32 - b8/copy-to-eax 1/imm32/exit - cd/syscall 0x80/imm8 + e8/call syscall_exit/disp32 # never gets here test-next-hex-int-single-digit: -- cgit 1.4.1-2-gfad0