;
; Comments using semi-colon
;
.text ; comment test
_main: ; comment test
mov %r2, @str
call @_print ; comment test
ioctl Syscall_exit
_print:
mov %r3, #1
mov %r0, [%r2]
loop:
ioctl Syscall_putc
add %r2, %r3
mov %r0, [%r2]
cmp %r0, %r4
jne @loop
ret
.data
str:
db "hello world\n" ; comment test