Yu-Gi-Oh! Monster Capsule GB/ROM map

From Data Crystal
< Yu-Gi-Oh! Monster Capsule GB
Revision as of 13:58, 9 May 2015 by Mantidactyle (talk | contribs) (Created page with "{{rommap|game=Yu-Gi-Oh! Monster Capsule GB}} ==Bank 18== ===Title screen=== ====Checks button pressed==== RO18:4AF5 5F ld e,a RO18:4AF6 71 ld ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Chip tiny.png The following article is a ROM map for Yu-Gi-Oh! Monster Capsule GB.

Bank 18

Title screen

Checks button pressed

RO18:4AF5 5F               ld   e,a
RO18:4AF6 71               ld   (hl),c
RO18:4AF7 1A               ld   a,(de)
RO18:4AF8 7F               ld   a,a
RO18:4AF9 72               ld   (hl),d
RO18:4AFA EA 49 1A         ld   (1A49),a
RO18:4AFD 21 84 03         ld   hl,0384
RO18:4B00 CD 1D 46         call 461D
RO18:4B03 21 09 4B         ld   hl,4B09
RO18:4B06 CD DD 45         call 45DD
RO18:4B09 F0 AA            ld   a,(ff00+AA)
RO18:4B0B E6 90            and  a,90
RO18:4B0D 20 0A            jr   nz,4B19		// If(button == A || button == Start), jump to 18:4B19
RO18:4B0F CD 26 46         call 4626
RO18:4B12 C0               ret  nz
RO18:4B13 3E 01            ld   a,01
RO18:4B15 EA 01 C2         ld   (C201),a
RO18:4B18 C9               ret  

Button A or Start pressed

RO18:4B19 3E DC            ld   a,DC
RO18:4B1B CD 77 3B         call 3B77
RO18:4B1E AF               xor  a
RO18:4B1F CD 67 4B         call 4B67
RO18:4B22 21 05 00         ld   hl,0005
RO18:4B25 CD 22 47         call 4722
RO18:4B28 3E 01            ld   a,01
RO18:4B2A CD 67 4B         call 4B67
RO18:4B2D 21 05 00         ld   hl,0005
RO18:4B30 CD 22 47         call 4722
RO18:4B33 06 08            ld   b,08
RO18:4B35 21 C8 49         ld   hl,49C8
RO18:4B38 CD D0 15         call 15D0
RO18:4B3B 3E 00            ld   a,00
RO18:4B3D E0 9C            ld   (ff00+9C),a
RO18:4B3F 21 04 00         ld   hl,0004
RO18:4B42 CD 22 47         call 4722
RO18:4B45 AF               xor  a
RO18:4B46 CD 67 4B         call 4B67
RO18:4B49 21 01 00         ld   hl,0001
RO18:4B4C CD 22 47         call 4722
RO18:4B4F 06 08            ld   b,08
RO18:4B51 21 FA 4A         ld   hl,4AFA
RO18:4B54 CD D0 15         call 15D0
RO18:4B57 3E E4            ld   a,E4
RO18:4B59 E0 9C            ld   (ff00+9C),a
RO18:4B5B 21 39 00         ld   hl,0039
RO18:4B5E CD 22 47         call 4722
RO18:4B61 3E 04            ld   a,04
RO18:4B63 EA 01 C2         ld   (C201),a
RO18:4B66 C9               ret