45 lines
952 B
Plaintext
45 lines
952 B
Plaintext
main:
|
|
ADDI64 r254, r254, -24d
|
|
ST r31, r254, 0a, 24h
|
|
LI32 r32, 1148846080w
|
|
CP r2, r32
|
|
JAL r31, r0, :sin
|
|
FMUL32 r33, r1, r32
|
|
FTI32 r1, r33, 1b
|
|
LD r31, r254, 0a, 24h
|
|
ADDI64 r254, r254, 24d
|
|
JALA r0, r31, 0a
|
|
sin:
|
|
LI32 r4, 1124073472w
|
|
LI32 r5, 1078530011w
|
|
FMUL32 r7, r2, r4
|
|
FDIV32 r9, r7, r5
|
|
FTI32 r11, r9, 1b
|
|
ANDI r10, r11, 255d
|
|
ITF64 r5, r11
|
|
MULI64 r4, r10, 4d
|
|
LRA r3, r0, :SIN_TABLE
|
|
LI32 r7, 1086918619w
|
|
FC64T32 r9, r5, 1b
|
|
ADDI64 r5, r11, 64d
|
|
ADD64 r8, r3, r4
|
|
LI32 r1, 1132462080w
|
|
FMUL32 r6, r9, r7
|
|
ANDI r7, r5, 255d
|
|
LI32 r5, 1056964608w
|
|
LD r4, r8, 0a, 4h
|
|
FDIV32 r8, r6, r1
|
|
MULI64 r6, r7, 4d
|
|
FMUL32 r10, r4, r5
|
|
FSUB32 r11, r2, r8
|
|
ADD64 r9, r3, r6
|
|
FMUL32 r2, r11, r10
|
|
LD r12, r9, 0a, 4h
|
|
FSUB32 r5, r12, r2
|
|
FMUL32 r7, r5, r11
|
|
FADD32 r1, r4, r7
|
|
JALA r0, r31, 0a
|
|
code size: 1303
|
|
ret: 826
|
|
status: Ok(())
|