You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
Fix construct_float by changing addiu to ori (#394)
This commit is contained in:
@@ -1506,14 +1506,14 @@ static ALWAYS_INLINE float construct_float(const float f)
|
||||
: "=r"(r)
|
||||
: "K"(upper));
|
||||
} else if ((i & 0xFFFF0000) == 0) {
|
||||
__asm__ ("addiu %0, $0, %1"
|
||||
__asm__ ("ori %0, $0, %1"
|
||||
: "+r"(r)
|
||||
: "K"(lower));
|
||||
} else {
|
||||
__asm__ ("lui %0, %1"
|
||||
: "=r"(r)
|
||||
: "K"(upper));
|
||||
__asm__ ("addiu %0, %0, %1"
|
||||
__asm__ ("ori %0, %0, %1"
|
||||
: "+r"(r)
|
||||
: "K"(lower));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user