mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-24 15:20:49 -04:00
b6904aa2cc
* remove ZAPD submodule * git subrepo clone https://github.com/zeldaret/ZAPD.git tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "ca229f19" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "ca229f19" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * git subrepo clone https://github.com/simonlindholm/decomp-permuter.git tools/decomp-permuter subrepo: subdir: "tools/decomp-permuter" merged: "1e4b85a7" upstream: origin: "https://github.com/simonlindholm/decomp-permuter.git" branch: "main" commit: "1e4b85a7" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * Remove asm-differ * git subrepo clone https://github.com/simonlindholm/asm-differ.git tools/asm-differ subrepo: subdir: "tools/asm-differ" merged: "eaf72269" upstream: origin: "https://github.com/simonlindholm/asm-differ.git" branch: "master" commit: "eaf72269" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * remove asm-processor * git subrepo clone https://github.com/simonlindholm/asm-processor.git tools/asm-processor subrepo: subdir: "tools/asm-processor" merged: "85288fcd" upstream: origin: "https://github.com/simonlindholm/asm-processor.git" branch: "master" commit: "85288fcd" git-subrepo: version: "0.4.3" origin: "???" commit: "???" * remove .gitmodules file * Update REAMDE * Update warnings
27 lines
387 B
C
27 lines
387 B
C
// COMPILE-FLAGS: -O2
|
|
|
|
int a(void) { return 1; }
|
|
GLOBAL_ASM(
|
|
glabel foo
|
|
addiu $a0, $a0, 1
|
|
addiu $a0, $a0, 2
|
|
addiu $a0, $a0, 3
|
|
jr $ra
|
|
addiu $a0, $a0, 4
|
|
)
|
|
float b(void) { return 1.2f; }
|
|
GLOBAL_ASM(
|
|
.late_rodata
|
|
glabel float1
|
|
.float 12.34
|
|
|
|
.text
|
|
glabel bar
|
|
addiu $a0, $a0, 5
|
|
addiu $a0, $a0, 6
|
|
lui $v0, %hi(float1 + 1)
|
|
jr $ra
|
|
addiu $v0, $v0, %lo(float1 + 1)
|
|
)
|
|
float c(void) { return 1.3f; }
|