; generated by lcc-xr16 rev.3 on Fri Apr 07 09:43:46 2000

global __reset
align 16
__reset:
addi sp,sp,-8
sw r15,6(sp)
call __zeromem
call _main
L2:
br L2
L1:
lw r15,6(sp)
addi sp,sp,8
ret

global __zeromem
align 16
__zeromem:
addi sp,sp,-12
sw r11,6(sp)
sw r12,8(sp)
sw r15,10(sp)
lea r12,__end
call __tos
mov r11,r2
br L10
L7:
sw r0,(r12)
L8:
lea r12,2(r12)
L10:
mov r9,r12
mov r8,r11
cmp r9,r8
bltu L7
L6:
lw r11,6(sp)
lw r12,8(sp)
lw r15,10(sp)
addi sp,sp,12
ret

global __interrupt
align 16
__interrupt:
mov r2,r0
L11:
ret

global __tos
align 16
__tos:
sw r3,0(sp)
lea r2,0+0(sp)
L12:
ret

global _mulu2
align 16
_mulu2:
addi sp,sp,-2
sw r12,0(sp)
mov r12,r0
br L17
L14:
mov r9,r3
andi r9,1
cmp r9,r0
beq L18
add r12,r12,r4
L18:
slli r4,1
L15:
srli r3,1
L17:
cmp r3,r0
bne L14
mov r2,r12
L13:
lw r12,0(sp)
addi sp,sp,2
ret

global __end
align 2
__end:
bss 2
