Un-ignored: the dev drive is the ground truth the restoration and emulator work constantly reference (DPL3/LIBDPL + VRENDER i860 renderer source, BT/RP live+dev game trees, VGL_LABS pod boot, scene/audio content). Kept in-repo for the pod-owner community. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
181 lines
4.1 KiB
ArmAsm
181 lines
4.1 KiB
ArmAsm
.file "test.c"
|
|
// PGC Rel 2.0a -opt 2
|
|
.text
|
|
.globl _intintint
|
|
.align 8
|
|
_intintint:
|
|
.a1 = 0
|
|
.f1 = 32
|
|
orh h%.STACK+.f1-16, r0, r28
|
|
or l%.STACK+.f1-16, r28, r28
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// lineno: 8
|
|
adds r16, r17, r29
|
|
adds r29, r18, r30
|
|
ixfr r30, f16
|
|
adds r17, r16, r19
|
|
subs r19, r18, r20
|
|
ixfr r20, f18
|
|
st.l r17, -4(r28)
|
|
st.l r18, -8(r28)
|
|
fmlow.dd f18, f16, f20
|
|
|
|
|
|
orh ha%_statint, r0, r31
|
|
bri r1
|
|
fst.l f20, l%_statint(r31)
|
|
// lineno: 13
|
|
|
|
|
|
|
|
|
|
bri r1
|
|
nop
|
|
.globl _floatfloatfloat
|
|
.align 8
|
|
_floatfloatfloat:
|
|
.a2 = 0
|
|
.f2 = 32
|
|
orh h%.STACK+.f2-16, r0, r28
|
|
or l%.STACK+.f2-16, r28, r28
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// lineno: 19
|
|
fadd.ss f9, f8, f16
|
|
|
|
|
|
fadd.ss f10, f16, f17
|
|
|
|
|
|
fadd.ss f8, f9, f18
|
|
|
|
|
|
fsub.ss f18, f10, f19
|
|
|
|
|
|
fmul.ss f19, f17, f20
|
|
|
|
orh ha%_statfloat, r0, r31
|
|
fst.l f20, l%_statfloat(r31)
|
|
fst.l f9, -4(r28)
|
|
bri r1
|
|
fst.l f10, -8(r28)
|
|
// lineno: 24
|
|
|
|
|
|
|
|
|
|
bri r1
|
|
nop
|
|
.globl _floatintfloat
|
|
.align 8
|
|
_floatintfloat:
|
|
.a3 = 80
|
|
.f3 = 32
|
|
addu -(.a3+.f3), sp, sp
|
|
st.l fp,(.f3-16)(sp)
|
|
addu (.f3-16), sp, fp
|
|
st.l r1, 4(fp)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
st.l r16, 48(fp)
|
|
fst.l f8, 16(fp)
|
|
// lineno: 30
|
|
orh ha%.C00094, r0, r31
|
|
fld.d l%.C00094(r31), f16
|
|
xorh 0x8000, r16, r28
|
|
ixfr r28, f18
|
|
fiadd.ss f17, f0, f19
|
|
|
|
fsub.dd f18, f16, f20
|
|
|
|
|
|
fmov.ds f20, f22
|
|
|
|
|
|
fiadd.ss f9, f0, f23
|
|
|
|
fiadd.ss f22, f0, f9
|
|
|
|
fiadd.ss f23, f0, f10
|
|
|
|
fst.l f22, -4(fp)
|
|
call _floatfloatfloat
|
|
fst.l f23, -8(fp)
|
|
fld.l 16(fp), f16
|
|
ld.l 48(fp), r17
|
|
fld.l -8(fp), f17
|
|
ftrunc.sd f16, f18
|
|
|
|
|
|
fxfr f18, r16
|
|
|
|
ftrunc.sd f17, f20
|
|
|
|
|
|
call _intintint
|
|
fxfr f20, r18
|
|
// lineno: 36
|
|
|
|
|
|
|
|
|
|
adds .a3+16, fp, r31
|
|
ld.l 4(fp), r1
|
|
ld.l 0(fp), fp
|
|
bri r1
|
|
mov r31, sp
|
|
.data
|
|
.align 8
|
|
.C00094: // (0)
|
|
.long 0x80000000, 0x43300000 // 4.50360177485414400E+15
|
|
.data
|
|
.align 4
|
|
_statint: //statint
|
|
.long 0
|
|
_statfloat: //statfloat
|
|
.long 0x0 // 0.00000000E+00
|
|
.lcomm .STACK,32
|