rewrite client function compiler

This commit is contained in:
Martin Michelsen
2026-05-11 07:29:25 -07:00
parent 2f2a0bcf2b
commit e78e2ba887
174 changed files with 3931 additions and 5807 deletions
@@ -0,0 +1,49 @@
# This function is required for loading DOLs. If it's not present, newserv can't serve DOL files to GameCube clients.
entry_ptr:
reloc0:
.offsetof start
.versions SH4
start:
mova r0, [address]
mov.l r0, [r0]
rets
mov.l r0, [r0]
.align 4
address:
.data 0
.versions PPC
start:
mflr r12
bl read
address:
.zero
read:
mflr r3
lwz r3, [r3]
lwz r3, [r3]
mtlr r12
blr
.versions X86
start:
call resume
address:
.data 0
resume:
pop eax
mov eax, [eax]
mov eax, [eax]
ret