mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
24 lines
294 B
ArmAsm
24 lines
294 B
ArmAsm
|
.macro loadtoc
|
||
|
.toc
|
||
|
.tc asym\@[TC], \@ | 0x10000
|
||
|
|
||
|
.csect .f2[PR]
|
||
|
.if size == 32
|
||
|
lwz 1,asym\@[TC](2)
|
||
|
.else
|
||
|
ld 1,asym\@[TC](2)
|
||
|
.endif
|
||
|
.endm
|
||
|
|
||
|
.globl .f2
|
||
|
.csect .f2[PR]
|
||
|
.f2:
|
||
|
.rept 0x7ffc * 8 / size
|
||
|
loadtoc
|
||
|
.endr
|
||
|
|
||
|
.globl f2
|
||
|
.csect f2[DS]
|
||
|
f2:
|
||
|
.long .f2[PR],TOC[TC0],0
|