shithub: pokered

Download patch

ref: b37a473c7c02bd1a6f3600938737786c8690ec48
parent: 468d065715f0ff89dc59bae90aa857d1ea34ec59
author: Bryan Bishop <kanzure@gmail.com>
date: Tue Jan 10 04:50:56 EST 2012

call $35d6 -> call Bankswitch

Thanks sawakita.

hg-commit-id: 3f365e56f6e6


--- a/pokered.asm
+++ b/pokered.asm
@@ -1365,9 +1365,9 @@
     push hl
     push de
     push bc
-    ld b, $3
-    ld hl, $72e5
-    call $35d6
+    ld b, $3 ; BANK(MyFunction)
+    ld hl, $72e5 ; MyFunction
+    call Bankswitch
     pop bc
     pop de
     pop hl
@@ -1578,7 +1578,7 @@
     ld [$cc49], a
     ld b, $13
     ld hl, $7da5
-    jp $35d6
+    jp Bankswitch
 
 GenRandom: ; 3E5C
 ; store a random 8-bit value in a
@@ -7777,9 +7777,9 @@
     jr nc, .asm_d0d90 ; 0x1d769
     ld a, $2d
     ldh [$db], a
-    ld b, $5
-    ld hl, $7f37
-    call $35d6
+    ld b, $5 ; BANK(MyFunction)
+    ld hl, $7f37 ; MyFunction
+    call Bankswitch
     ld hl, $d75f
     set 0, [hl]
     ld hl, $5824
@@ -13640,9 +13640,9 @@
 .next8\@
 	call $60DF
 	call $5C5C
-	ld hl,$7B7B
-	ld b,$B
-	call $35D6
+	ld hl,$7B7B ; MyFunction
+	ld b,$B ; BANK(MyFunction)
+	call Bankswitch
 	ld a,1
 	ld [$CCF4],a
 .next9\@
@@ -24525,9 +24525,9 @@
     call PrintText
     ld a, $33
     ldh [$db], a
-    ld b, $5
-    ld hl, $7f37
-    call $35d6
+    ld b, $5 ; BANK(MyFunction)
+    ld hl, $7f37 ; MyFunction
+    call Bankswitch
     ld hl, $d7af
     set 0, [hl]
     jr .asm_62ecd ; 0x5ccc1
@@ -28208,9 +28208,9 @@
     call PrintText
     ld a, $40
     ldh [$db], a
-    ld b, $5
-    ld hl, $7f37
-    call $35d6
+    ld b, $5 ; BANK(MyFunction)
+    ld hl, $7f37 ; MyFunction
+    call Bankswitch
     ld hl, $d78e
     set 1, [hl]
 .asm_60cba ; 0x75109