From 3fe714d3d463d2040f2089214e56d7825daf4c06 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 20 Sep 2018 21:38:51 -0700 Subject: 4562 --- subx/examples/ex4.subx | 6 +++--- subx/examples/ex5.subx | 6 +++--- subx/examples/ex6.subx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'subx') diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx index f018092b..bb0525e4 100644 --- a/subx/examples/ex4.subx +++ b/subx/examples/ex4.subx @@ -17,7 +17,7 @@ # size = 1 character ba/copy 1/imm32 # copy 1 to EDX # read(fd, x, size) - b8/copy 3/imm32 # copy 3 to EAX + b8/copy 3/imm32/read # copy 3 to EAX cd/syscall 0x80/imm8 # int 80h # write(stdout, x, 1) @@ -28,11 +28,11 @@ # size = 1 character ba/copy 1/imm32 # copy 1 to EDX # write(fd, x, size) - b8/copy 4/imm32 # copy 4 to EAX + b8/copy 4/imm32/write # copy 4 to EAX cd/syscall 0x80/imm8 # int 80h # exit(EBX) - b8/copy 1/imm32 # copy 1 to EAX + b8/copy 1/imm32/exit # copy 1 to EAX cd/syscall 0x80/imm8 # int 80h == data diff --git a/subx/examples/ex5.subx b/subx/examples/ex5.subx index a0bb9d48..cafad042 100644 --- a/subx/examples/ex5.subx +++ b/subx/examples/ex5.subx @@ -24,7 +24,7 @@ # size = 1 character ba/copy 1/imm32 # copy 1 to EDX # read(fd, x, size) - b8/copy 3/imm32 # copy 3 to EAX + b8/copy 3/imm32/read # copy 3 to EAX cd/syscall 0x80/imm8 # int 80h # write(stdout, x, 1) @@ -35,11 +35,11 @@ # size = 1 character ba/copy 1/imm32 # copy 1 to EDX # write(fd, x, size) - b8/copy 4/imm32 # copy 4 to EAX + b8/copy 4/imm32/write # copy 4 to EAX cd/syscall 0x80/imm8 # int 80h # exit(EBX) - b8/copy 1/imm32 # copy 1 to EAX + b8/copy 1/imm32/exit # copy 1 to EAX cd/syscall 0x80/imm8 # int 80h # vim:ft=subx:nowrap diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx index c2de9c19..92ad4c21 100644 --- a/subx/examples/ex6.subx +++ b/subx/examples/ex6.subx @@ -18,11 +18,11 @@ # initialize size 8b/copy 0/mod/indirect 5/rm32/.disp32 2/r32/EDX size/disp32 # copy *size to EDX # write(fd, x, size) - b8/copy 4/imm32 # copy 4 to EAX + b8/copy 4/imm32/write # copy 4 to EAX cd/syscall 0x80/imm8 # int 80h # exit(EBX) - b8/copy 1/imm32 # copy 1 to EAX + b8/copy 1/imm32/exit # copy 1 to EAX cd/syscall 0x80/imm8 # int 80h == data -- cgit 1.4.1-2-gfad0