1985-07-26 11:56:24 +00:00
|
|
|
.define .los
|
1987-01-16 16:49:46 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
|
|
|
.sect .text
|
1985-07-26 11:56:24 +00:00
|
|
|
|
1987-01-16 16:49:46 +00:00
|
|
|
.sect .text
|
1985-07-26 11:56:24 +00:00
|
|
|
|
|
|
|
.los:
|
|
|
|
movd tos, r7
|
|
|
|
movd tos, r0
|
|
|
|
movd tos, r1
|
|
|
|
cmpqd 1, r0
|
|
|
|
beq 1f
|
|
|
|
cmpqd 2, r0
|
|
|
|
beq 2f
|
|
|
|
addd r0, r1
|
|
|
|
3:
|
|
|
|
addqd -4, r1
|
|
|
|
movd 0(r1), tos
|
|
|
|
acbd -4, r0, 3b
|
|
|
|
4:
|
|
|
|
movd r7, tos
|
|
|
|
ret 0
|
|
|
|
1:
|
|
|
|
movzbd 0(r1), tos
|
|
|
|
br 4b
|
|
|
|
2:
|
|
|
|
movzwd 0(r1), tos
|
|
|
|
br 4b
|