home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
prog
/
source
/
dcassem.lha
/
No.13
< prev
next >
Wrap
Text File
|
1988-05-14
|
457b
|
25 lines
CODE
INCLUDE "exec/types.i"
INCLUDE "printf.mac"
DEBUGENABLE
; a simple little program to test if the printf macro works OK
Start printf <'Starting: d0=%ld a0=$%lx\n'>,d0,a0
cmpi.w #1,d0
bne.s PrintArgs
printf <'No arguments given\n'>
bra.s AllDone
PrintArgs printf <'Arg string = '>
subq.w #1,d0
ArgLoop move.b (a0)+,d1 get next character
printf <'%c'>,d1 print it out
dbra d0,ArgLoop and loop for next
AllDone rts
END