diff options
author | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-12-23 15:40:59 -0500 |
---|---|---|
committer | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-12-23 15:40:59 -0500 |
commit | 043e9327650f2ee0053fe43a29c9d63bc5e120d3 (patch) | |
tree | 0fe1b2d958825dfd22d921d77fe068087e164ddf /home/copy2.asm | |
parent | 8b82d13dd520d387f926db819fda949ad0021b53 (diff) |
engine/trade.asm, trade2.asm, intro.asm, overworld/emotion_bubbles.asm
Also document Func_1681 (GetFarByte) and fix Missingno's dex entry
Diffstat (limited to 'home/copy2.asm')
-rw-r--r-- | home/copy2.asm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/home/copy2.asm b/home/copy2.asm index 41ba3dea..5318dc35 100644 --- a/home/copy2.asm +++ b/home/copy2.asm @@ -149,17 +149,19 @@ FillMemory:: ; 166e (0:166e) jr nz, .loop ret -Func_1681:: ; 1681 (0:1681) +GetFarByte:: ; 1681 (0:1681) +; get a byte from a:hl +; and return it in a push bc - ld b,a + ld b, a ld a, [H_LOADEDROMBANK] push af - ld a,b + ld a, b call BankswitchCommon - ld b,[hl] + ld b, [hl] pop af call BankswitchCommon - ld a,b + ld a, b pop bc ret |