a2ca8d98df
Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
66 lines
1.1 KiB
Plaintext
66 lines
1.1 KiB
Plaintext
box:
|
|
CP r13, r2
|
|
CP r1, r13
|
|
JALA r0, r31, 0a
|
|
main:
|
|
ADDI64 r254, r254, -32d
|
|
ST r31, r254, 0a, 32h
|
|
LI32 r32, 1065353216w
|
|
CP r2, r32
|
|
JAL r31, r0, :box
|
|
CP r33, r1
|
|
CP r2, r0
|
|
JAL r31, r0, :box
|
|
CP r34, r1
|
|
FCMPLT32 r33, r33, r34
|
|
ANDI r33, r33, 255d
|
|
JNE r33, r0, :0
|
|
CP r2, r32
|
|
JAL r31, r0, :box
|
|
CP r33, r1
|
|
CP r2, r0
|
|
JAL r31, r0, :box
|
|
CP r34, r1
|
|
FCMPGT32 r33, r33, r34
|
|
NOT r33, r33
|
|
ANDI r33, r33, 255d
|
|
JNE r33, r0, :1
|
|
CP r2, r0
|
|
JAL r31, r0, :box
|
|
CP r33, r1
|
|
CP r2, r32
|
|
JAL r31, r0, :box
|
|
CP r34, r1
|
|
FCMPGT32 r33, r33, r34
|
|
ANDI r33, r33, 255d
|
|
JNE r33, r0, :2
|
|
CP r2, r0
|
|
JAL r31, r0, :box
|
|
CP r33, r1
|
|
CP r2, r32
|
|
JAL r31, r0, :box
|
|
CP r32, r1
|
|
FCMPLT32 r32, r33, r32
|
|
NOT r32, r32
|
|
ANDI r32, r32, 255d
|
|
JNE r32, r0, :3
|
|
CP r1, r0
|
|
JMP :4
|
|
3: LI64 r32, 4d
|
|
CP r1, r32
|
|
JMP :4
|
|
2: LI64 r32, 3d
|
|
CP r1, r32
|
|
JMP :4
|
|
1: LI64 r32, 2d
|
|
CP r1, r32
|
|
JMP :4
|
|
0: LI64 r32, 1d
|
|
CP r1, r32
|
|
4: LD r31, r254, 0a, 32h
|
|
ADDI64 r254, r254, 32d
|
|
JALA r0, r31, 0a
|
|
code size: 355
|
|
ret: 0
|
|
status: Ok(())
|