ack/mach/ns/libem/prstr.s

19 lines
220 B
ArmAsm
Raw Normal View History

1985-07-26 11:56:24 +00:00
.define .prstr
.text
!het adres van de af te drukken string staat op de stack.
.prstr:
save [r1]
movd 8(sp), r1
1:
cmpqb 0, 0(r1)
beq 2f
movb 0(r1), tos
jsr @.putchar
addqd 1, r1
br 1b
2:
restore [r1]
ret 4