diff options
Diffstat (limited to 'subx/examples/ex4.subx')
-rw-r--r-- | subx/examples/ex4.subx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx index f053d3fe..17dae120 100644 --- a/subx/examples/ex4.subx +++ b/subx/examples/ex4.subx @@ -5,6 +5,7 @@ # $ subx run examples/ex4 == code + # syscall(read, stdin, X, 1) # fd = 0 (stdin) bb/copy-to-EBX 0/imm32 @@ -32,6 +33,7 @@ b8/copy-to-EAX 1/imm32/exit cd/syscall 0x80/imm8 == data + X: 00 00 00 00 # space for read() to write to |