mirror of
https://github.com/HackerN64/F3DEX3.git
synced 2026-01-21 10:37:45 -08:00
Merged ProhibitR1Macros
This commit is contained in:
18
f3dex2.s
18
f3dex2.s
@@ -22,6 +22,24 @@
|
||||
ori dst, src, 0
|
||||
.endmacro
|
||||
|
||||
// Prohibit macros involving slt; this silently clobbers $1. You can of course
|
||||
// manually write the slt and branch instructions if you want this behavior.
|
||||
.macro blt, ra, rb, lbl
|
||||
.error "blt is a macro using slt, and silently clobbers $1!"
|
||||
.endmacro
|
||||
|
||||
.macro bgt, ra, rb, lbl
|
||||
.error "bgt is a macro using slt, and silently clobbers $1!"
|
||||
.endmacro
|
||||
|
||||
.macro ble, ra, rb, lbl
|
||||
.error "ble is a macro using slt, and silently clobbers $1!"
|
||||
.endmacro
|
||||
|
||||
.macro bge, ra, rb, lbl
|
||||
.error "bge is a macro using slt, and silently clobbers $1!"
|
||||
.endmacro
|
||||
|
||||
// Vector macros
|
||||
.macro vcopy, dst, src
|
||||
vadd dst, src, $v0[0]
|
||||
|
||||
Reference in New Issue
Block a user