summaryrefslogtreecommitdiff
path: root/03/in03
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2021-11-14 00:33:40 -0500
committerpommicket <pommicket@gmail.com>2021-11-14 00:33:40 -0500
commit7bb8ab02f70c0a436a00e29275ab87b5bb56d584 (patch)
treefe6caca7fbd907c6191f00e4f8837612e5bd70ef /03/in03
parentf7f1f10cb06eb69e12a1b83de6d4c62f0b68ad46 (diff)
03 README
Diffstat (limited to '03/in03')
-rw-r--r--03/in036
1 files changed, 3 insertions, 3 deletions
diff --git a/03/in03 b/03/in03
index ef0640a..a8d8744 100644
--- a/03/in03
+++ b/03/in03
@@ -1,6 +1,6 @@
-; write to stdout
B=:hello_world
call :puts
+; exit code 0
J=d0
syscall x3c
@@ -11,15 +11,15 @@ x0
; output null-terminated string in rbx
:puts
+ R=B
call :strlen
- I=D
D=A
+ I=R
J=d1
syscall d1
return
; calculate length of string in rbx
-; keeps pointer to start of string in rdx, end of string in rsi
:strlen
; keep pointer to start of string
D=B