home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
utilities
/
utilss
/
sasm
/
SAsm
/
Source
/
Hello_C_50
< prev
next >
Wrap
Text File
|
1993-03-20
|
536b
|
21 lines
;--> Hello_C
; Third file of demo program for SAsm
; © D.J.Holden 1991
; This file just contains the Macro Function
; definition required by the previous files
; Displays a 0 terminated string pointed to by 'register%'
DEFFNmessage (register%)
[OPT PASS
.loop ldrb r0,[register%],#1 ;get the next char and add 1 to pointer
cmp r0,#0 ;is it the end?
swine "OS_WriteC" ;not the end so display the character
bne loop ;go round again if not at the end
]
=0