forked from koniifer/ableos
50 lines
1 KiB
Plaintext
50 lines
1 KiB
Plaintext
main:
|
|
ADDI64 r254, r254, -72d
|
|
ST r31, r254, 48a, 24h
|
|
LI64 r32, 1d
|
|
ST r32, r254, 0a, 24h
|
|
LI64 r32, 2d
|
|
ST r32, r254, 8a, 24h
|
|
LI64 r32, 4d
|
|
ST r32, r254, 16a, 24h
|
|
ADDI64 r32, r254, 0d
|
|
ADDI64 r33, r254, 24d
|
|
BMC r32, r33, 24h
|
|
ADDI64 r33, r254, 24d
|
|
CP r2, r33
|
|
JAL r31, r0, :pass
|
|
LD r31, r254, 48a, 24h
|
|
ADDI64 r254, r254, 72d
|
|
JALA r0, r31, 0a
|
|
pass:
|
|
ADDI64 r254, r254, -40d
|
|
ST r31, r254, 0a, 40h
|
|
CP r32, r2
|
|
CP r33, r32
|
|
LI64 r34, 0d
|
|
MULI64 r34, r34, 8d
|
|
ADD64 r33, r33, r34
|
|
LD r34, r33, 0a, 8h
|
|
CP r33, r32
|
|
LI64 r35, 1d
|
|
MULI64 r35, r35, 8d
|
|
ADD64 r33, r33, r35
|
|
LD r35, r33, 0a, 8h
|
|
ADD64 r34, r34, r35
|
|
CP r35, r32
|
|
LI64 r33, 1d
|
|
MULI64 r33, r33, 8d
|
|
ADD64 r32, r32, r33
|
|
LD r33, r32, 0a, 8h
|
|
MULI64 r33, r33, 8d
|
|
ADD64 r35, r35, r33
|
|
LD r33, r35, 0a, 8h
|
|
ADD64 r34, r34, r33
|
|
CP r1, r34
|
|
LD r31, r254, 0a, 40h
|
|
ADDI64 r254, r254, 40d
|
|
JALA r0, r31, 0a
|
|
code size: 408
|
|
ret: 7
|
|
status: Ok(())
|