ack/mach/vax4/libem/print.s

27 lines
343 B
ArmAsm
Raw Permalink Normal View History

1990-01-12 10:29:26 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define printd
.define printc
1994-06-24 14:02:31 +00:00
! $Id$
1985-01-18 14:30:03 +00:00
printd:
clrl r1
ediv $10,r0,r0,r1
1990-01-12 10:29:26 +00:00
beql I1
1985-01-18 14:30:03 +00:00
pushl r1
jsb printd
movl (sp)+,r1
1990-01-12 10:29:26 +00:00
I1:
addb3 $'0',r1,r0
1985-01-18 14:30:03 +00:00
printc:
1990-01-22 15:28:45 +00:00
movb r0,Ich
pushl $1
pushab Ich
pushl $2
1992-06-30 16:51:19 +00:00
calls $3,WRITE
1985-01-18 14:30:03 +00:00
rsb
1990-01-12 10:29:26 +00:00
.sect .data
1990-01-22 15:28:45 +00:00
Ich: .data1 0