home *** CD-ROM | disk | FTP | other *** search
- ;--> 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
-
-