ack/mach/vax4/libem/inn.s

21 lines
274 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 .inn
1985-01-18 14:30:03 +00:00
1994-06-24 14:02:31 +00:00
! $Id$
1990-01-12 10:29:26 +00:00
! bytes in r0
1985-01-18 14:30:03 +00:00
.inn:
movl (sp)+,r3
movl (sp)+,r1
1990-01-12 10:29:26 +00:00
ashl $3,r0,r2 ! nr of bits in r2
1985-01-18 14:30:03 +00:00
cmpl r1,r2
1990-01-12 10:29:26 +00:00
bgequ I2
bbc r1,(sp),I2
1985-01-18 14:30:03 +00:00
movl $1,r1
1990-01-12 10:29:26 +00:00
I1:
1985-01-18 14:30:03 +00:00
addl2 r0,sp
jmp (r3)
1990-01-12 10:29:26 +00:00
I2:
1985-01-18 14:30:03 +00:00
clrl r1
1990-01-12 10:29:26 +00:00
br I1