1985-01-18 14:30:03 +00:00
|
|
|
#include "em_abs.h"
|
1990-01-12 10:29:26 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
|
|
|
|
.define .setx
|
1985-01-18 14:30:03 +00:00
|
|
|
|
1994-06-24 14:02:31 +00:00
|
|
|
! $Id$
|
1985-01-21 12:56:09 +00:00
|
|
|
|
1985-01-18 14:30:03 +00:00
|
|
|
|
1990-01-12 10:29:26 +00:00
|
|
|
! bytes in r0
|
1985-01-18 14:30:03 +00:00
|
|
|
.setx:
|
|
|
|
movl (sp)+,r3
|
1990-01-12 10:29:26 +00:00
|
|
|
movl (sp)+,r1 ! bitnumber in r1
|
1985-01-18 14:30:03 +00:00
|
|
|
subl3 r0,sp,r2
|
1990-01-12 10:29:26 +00:00
|
|
|
I1:
|
1985-01-18 14:30:03 +00:00
|
|
|
clrl -(sp)
|
|
|
|
cmpl sp,r2
|
1990-01-12 10:29:26 +00:00
|
|
|
bgtru I1
|
|
|
|
ashl $3,r0,r2 ! number 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
|
|
|
|
bbcs r1,(sp),I3
|
|
|
|
I3:
|
1985-01-18 14:30:03 +00:00
|
|
|
jmp (r3)
|
1990-01-12 10:29:26 +00:00
|
|
|
I2:
|
1985-01-18 14:30:03 +00:00
|
|
|
pushl $ESET
|
|
|
|
jsb .trp
|
|
|
|
jmp (r3)
|