ack/mach/vax4/libem/set.s

26 lines
307 B
ArmAsm
Raw Normal View History

1985-01-18 14:30:03 +00:00
#include "em_abs.h"
# $Header$
1985-01-18 14:30:03 +00:00
.globl .setx
# bytes in r0
.setx:
movl (sp)+,r3
movl (sp)+,r1 # bitnumber in r1
subl3 r0,sp,r2
L1:
clrl -(sp)
cmpl sp,r2
bgtru L1
ashl $3,r0,r2 # number of bits in r2
cmpl r1,r2
bgequ L2
bbcs r1,(sp),L3
L3:
jmp (r3)
L2:
pushl $ESET
jsb .trp
jmp (r3)