From 043e9327650f2ee0053fe43a29c9d63bc5e120d3 Mon Sep 17 00:00:00 2001 From: luckytyphlosion Date: Wed, 23 Dec 2015 15:40:59 -0500 Subject: engine/trade.asm, trade2.asm, intro.asm, overworld/emotion_bubbles.asm Also document Func_1681 (GetFarByte) and fix Missingno's dex entry --- home/copy2.asm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'home') 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 -- cgit v1.3.1-sl0p