1984-07-19 13:34:12 +00:00
|
|
|
/ $Header$
|
1984-07-19 12:51:00 +00:00
|
|
|
.text
|
|
|
|
.globl cii~
|
|
|
|
|
|
|
|
/convert int to int
|
|
|
|
/ 1 byte -> ? : sign extension
|
|
|
|
cii~:
|
1984-07-20 16:20:28 +00:00
|
|
|
mov (sp)+,r3
|
1984-07-19 12:51:00 +00:00
|
|
|
mov (sp)+,r0
|
|
|
|
sub (sp)+,r0
|
|
|
|
ble 1f
|
|
|
|
asr r0
|
|
|
|
bcc 2f
|
|
|
|
movb (sp),r1
|
|
|
|
mov r1,(sp)
|
|
|
|
2: tst r0
|
|
|
|
beq 3f
|
|
|
|
tst (sp)
|
|
|
|
4: sxt -(sp)
|
|
|
|
sob r0,4b
|
1984-07-20 16:20:28 +00:00
|
|
|
1: sub r0,sp / if out of sob loop r0==0
|
|
|
|
3: jmp (r3)
|