mirror of https://github.com/pmret/papermario.git
Updated GCC 2.8.1 Tips and Tricks (markdown)
parent
37db63fbc7
commit
db6b5edf06
|
@ -31,14 +31,14 @@ f32 x;
|
||||||
x / y
|
x / y
|
||||||
```
|
```
|
||||||
|
|
||||||
## break
|
|
||||||
division only generates break if you divide by a variable rather than a constant
|
|
||||||
|
|
||||||
This issue lists the constants/shifts:
|
This issue lists the constants/shifts:
|
||||||
https://github.com/NationalSecurityAgency/ghidra/issues/668
|
https://github.com/NationalSecurityAgency/ghidra/issues/668
|
||||||
|
|
||||||
e.g. `MULT_HI(x, 0x51EB851F) >> 5` is `x / 10`
|
e.g. `MULT_HI(x, 0x51EB851F) >> 5` is `x / 10`
|
||||||
|
|
||||||
|
## break
|
||||||
|
division only generates break if you divide by a variable rather than a constant
|
||||||
|
|
||||||
# Loops
|
# Loops
|
||||||
|
|
||||||
## Negative struct offsets in loops
|
## Negative struct offsets in loops
|
||||||
|
|
Loading…
Reference in New Issue