Skip to content

Commit

Permalink
MBC3 constants in some RTC-related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
yenatch committed Feb 1, 2014
1 parent ee09825 commit a643ba8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -20391,13 +20391,13 @@ SECTION "bank5", ROMX, BANK[$5]

Function14000: ; 14000
ld a, $a
ld [$0000], a
ld [MBC3SRamEnable], a
call LatchClock
ld a, $c
ld [Function14000], a
ld a, [$a000]
ld [MBC3SRamBank], a
ld a, [MBC3RTC]
set 6, a
ld [$a000], a
ld [MBC3RTC], a
call CloseSRAM
ret
; 14019
Expand All @@ -20406,13 +20406,13 @@ Function14000: ; 14000

Function14019: ; 14019
ld a, $a
ld [$0000], a
ld [MBC3SRamEnable], a
call LatchClock
ld a, $c
ld [Function14000], a
ld a, [$a000]
ld [MBC3SRamBank], a
ld a, [MBC3RTC]
res 6, a
ld [$a000], a
ld [MBC3RTC], a
call CloseSRAM
ret
; 14032
Expand Down Expand Up @@ -20472,14 +20472,14 @@ Function14056: ; 14056

Function1406a: ; 1406a
ld a, $a
ld [$0000], a
ld [MBC3SRamEnable], a
call LatchClock
ld hl, $a000
ld hl, MBC3RTC
ld a, $c
ld [Function14000], a
ld [MBC3SRamBank], a
res 7, [hl]
ld a, $0
ld [Function14000], a
ld [MBC3SRamBank], a
xor a
ld [$ac60], a
call CloseSRAM
Expand Down Expand Up @@ -88577,7 +88577,7 @@ INCBIN "baserom.gbc",$114000,$114243 - $114000

Function114243: ; 114243
ld a, $a
ld [$0000], a
ld [MBC3SRamEnable], a
ld a, [$ff8c]
push af
push de
Expand Down

0 comments on commit a643ba8

Please sign in to comment.