summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2017-12-25 13:40:10 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2017-12-25 14:23:16 -0500
commite34e68095df1f91dc5357669c187623d7cba39c6 (patch)
tree5a452f39d9c44012df90a12f1524042c6dbcd062 /docs
parentda2b01a36c6855230ec36c42bd49e7cf2ca2d348 (diff)
Resolve #428: Use `HIGH(X)` and `LOW(X)` instead of `X / $100` and `X % $100` or `X >> 8` and `X & $ff`
Diffstat (limited to 'docs')
-rw-r--r--docs/bugs_and_glitches.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md
index b38ec12ee..bf170881a 100644
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -72,16 +72,16 @@ This is a bug with `SpeciesItemBoost` in [battle/effect_commands.asm](/battle/ef
sla l
rl h
- ld a, 999 / $100
+ ld a, HIGH(MAX_STAT_VALUE)
cp h
jr c, .cap
- ld a, 999 % $100
+ ld a, LOW(MAX_STAT_VALUE)
cp l
ret nc
.cap
- ld h, 999 / $100
- ld l, 999 % $100
+ ld h, HIGH(MAX_STAT_VALUE)
+ ld l, LOW(MAX_STAT_VALUE)
ret
```
@@ -128,16 +128,16 @@ This is a bug with `DittoMetalPowder` in [battle/effect_commands.asm](/battle/ef
scf
rr c
- ld a, 999 / $100
+ ld a, HIGH(MAX_STAT_VALUE)
cp b
jr c, .cap
- ld a, 999 % $100
+ ld a, LOW(MAX_STAT_VALUE)
cp c
ret nc
.cap
- ld b, 999 / $100
- ld c, 999 % $100
+ ld b, HIGH(MAX_STAT_VALUE)
+ ld c, LOW(MAX_STAT_VALUE)
ret
```
@@ -1398,7 +1398,7 @@ ClearWRAM:: ; 25a
push af
ld [rSVBK], a
xor a
- ld hl, $d000
+ ld hl, wRAM1Start
ld bc, $1000
call ByteFill
pop af