home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / discs / shareware / share_46 / sasm / Examples / Hello_C_50 < prev    next >
Text File  |  1993-03-20  |  536b  |  21 lines

  1. ;--> Hello_C
  2.  
  3. ; Third file of demo program for SAsm
  4. ; ⌐ D.J.Holden 1991
  5.  
  6.   ; This file just contains the Macro Function
  7.   ; definition required by the previous files
  8.  
  9.  
  10.   ; Displays a 0 terminated string pointed to by 'register%'
  11.  
  12. DEFFNmessage (register%)
  13. [OPT PASS
  14. .loop   ldrb r0,[register%],#1    ;get the next char and add 1 to pointer
  15.         cmp r0,#0                 ;is it the end?
  16.         swine "OS_WriteC"         ;not the end so display the character 
  17.         bne loop                  ;go round again if not at the end
  18. ]
  19. =0
  20.  
  21.