summaryrefslogtreecommitdiff
path: root/home/misc_32c8.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/misc_32c8.asm')
-rw-r--r--home/misc_32c8.asm24
1 files changed, 8 insertions, 16 deletions
diff --git a/home/misc_32c8.asm b/home/misc_32c8.asm
index ae12d23..3fafade 100644
--- a/home/misc_32c8.asm
+++ b/home/misc_32c8.asm
@@ -1,10 +1,6 @@
include "constants.asm"
-; if DEBUG
SECTION "home/misc_32c8.asm@Unknown 32c8", ROM0
-; else
-; SECTION "Unknown 32c8", ROM0[$328c]
-; endc
Function32c8::
predef GetItemAmount
@@ -13,10 +9,10 @@ Function32c8::
ret
Function32d0::
- ld hl, .Data
+ ld hl, .EmptyString
ret
-.Data: ; 00:32d4
+.EmptyString:
db "@"
SubtractSigned::
@@ -27,13 +23,9 @@ SubtractSigned::
scf
ret
-; if DEBUG
SECTION "home/misc_32c8.asm@Unknown 3686", ROM0
-; else
-; SECTION "Unknown 3686", ROM0[$364a]
-; endc
-GiveMonToPlayer:: ; 3686
+GiveMonToPlayer::
; Give to the player Pokemon of species b at level c.
ld a, b
ld [wMonDexIndex], a
@@ -43,7 +35,7 @@ GiveMonToPlayer:: ; 3686
ld [wMonType], a
jpba Function1130a
-WaitPressedAny:: ; 369a
+WaitPressedAny::
; Waits for one of the buttons in d to be pressed.
; If bc is negative, waits forever.
; Otherwise, times out after bc frames then returns z.
@@ -76,15 +68,15 @@ WaitPressedAny:: ; 369a
; Return z, signifying that the request timed out.
ret
-CountSetBits:: ; 36b1
+CountSetBits::
; Count the number of bits set in b bytes at hl.
; Return to a, c, and wCountSetBitsResult.
ld c, $0
-.asm_36b3: ; 00:36b3
+.asm_36b3:
ld a, [hli]
ld e, a
ld d, $8
-.asm_36b7: ; 00:36b7
+.asm_36b7:
srl e
ld a, $0
adc c
@@ -95,4 +87,4 @@ CountSetBits:: ; 36b1
jr nz, .asm_36b3
ld a, c
ld [wCountSetBitsResult], a
- ret \ No newline at end of file
+ ret