mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-13 03:29:50 +00:00
24 lines
281 B
ArmAsm
24 lines
281 B
ArmAsm
.macro loadtoc
|
|
.toc
|
|
.tc sym\@[TC], \@
|
|
|
|
.csect .f1[PR]
|
|
.if size == 32
|
|
lwz 1,sym\@[TC](2)
|
|
.else
|
|
ld 1,sym\@[TC](2)
|
|
.endif
|
|
.endm
|
|
|
|
.globl .f1
|
|
.csect .f1[PR]
|
|
.f1:
|
|
.rept 0x7ffc * 8 / size
|
|
loadtoc
|
|
.endr
|
|
|
|
.globl f1
|
|
.csect f1[DS]
|
|
f1:
|
|
.long .f1[PR],TOC[TC0],0
|