From 9372c16c00f032fe72e921723c2dc9ab88486ff6 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 21 Sep 2018 16:55:46 -0700 Subject: 4581 Even more cuddling. We want to keep lines short where the opcode and operands are self-explanatory. If there are any implicit registers, etc., we'll continue to do the table layout. The first two columns look messy now; let's see how this goes. Maybe I'll give up on the tabular layout altogether, just string args with a single space. --- subx/examples/ex4.subx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subx/examples/ex4.subx') diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx index 512978d1..810278e6 100644 --- a/subx/examples/ex4.subx +++ b/subx/examples/ex4.subx @@ -18,7 +18,7 @@ ba/copy 1/imm32 # copy 1 to EDX # read(fd, x, size) b8/copy 3/imm32/read # copy 3 to EAX - cd/syscall 0x80/imm8 # int 80h + cd/syscall 0x80/imm8 # write(stdout, x, 1) # fd = 1 (stdout) @@ -29,11 +29,11 @@ ba/copy 1/imm32 # copy 1 to EDX # write(fd, x, size) b8/copy 4/imm32/write # copy 4 to EAX - cd/syscall 0x80/imm8 # int 80h + cd/syscall 0x80/imm8 # exit(EBX) b8/copy 1/imm32/exit # copy 1 to EAX - cd/syscall 0x80/imm8 # int 80h + cd/syscall 0x80/imm8 == data x: -- cgit 1.4.1-2-gfad0