From 5a9795bb661314d658afffd84059cc32e3b3b709 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 28 Dec 2018 08:56:21 -0800 Subject: 4881 --- subx/examples/ex10.subx | 2 +- subx/examples/ex11.subx | 2 +- subx/examples/ex2.subx | 2 +- subx/examples/ex3.subx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'subx/examples') diff --git a/subx/examples/ex10.subx b/subx/examples/ex10.subx index 86d7cb54..9ac6d6cb 100644 --- a/subx/examples/ex10.subx +++ b/subx/examples/ex10.subx @@ -29,7 +29,7 @@ e8/call argv-equal/disp32 # syscall(exit, EAX) 89/copy 3/mod/direct 3/rm32/EBX . . . 0/r32/EAX . . # copy EAX to EBX - b8/copy-to-EAX 1/imm32 + b8/copy-to-EAX 1/imm32/exit cd/syscall 0x80/imm8 # compare two null-terminated ascii strings diff --git a/subx/examples/ex11.subx b/subx/examples/ex11.subx index a03c08d3..5acd5bf0 100644 --- a/subx/examples/ex11.subx +++ b/subx/examples/ex11.subx @@ -23,7 +23,7 @@ e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'. # syscall(exit, EAX) 89/copy 3/mod/direct 3/rm32/EBX . . . 0/r32/EAX . . # copy EAX to EBX - b8/copy-to-EAX 1/imm32 + b8/copy-to-EAX 1/imm32/exit cd/syscall 0x80/imm8 # compare a null-terminated ascii string with a more idiomatic length-prefixed byte array diff --git a/subx/examples/ex2.subx b/subx/examples/ex2.subx index 80833894..34dcdf75 100644 --- a/subx/examples/ex2.subx +++ b/subx/examples/ex2.subx @@ -14,7 +14,7 @@ bb/copy-to-EBX 1/imm32 # increment EBX 43/inc-EBX # syscall(exit, EBX) -b8/copy-to-EAX 1/imm32 +b8/copy-to-EAX 1/imm32/exit cd/syscall 0x80/imm8 # . . vim:nowrap:textwidth=0 diff --git a/subx/examples/ex3.subx b/subx/examples/ex3.subx index a89ec99c..e12f87a2 100644 --- a/subx/examples/ex3.subx +++ b/subx/examples/ex3.subx @@ -30,7 +30,7 @@ $loop: $exit: # syscall(exit, EBX) - b8/copy-to-EAX 1/imm32 + b8/copy-to-EAX 1/imm32/exit cd/syscall 0x80/imm8 # . . vim:nowrap:textwidth=0 -- cgit 1.4.1-2-gfad0