mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
MBC3 constants in some RTC-related functions
This commit is contained in:
parent
ee098254a8
commit
a643ba8996
26
main.asm
26
main.asm
@ -20391,13 +20391,13 @@ SECTION "bank5", ROMX, BANK[$5]
|
|||||||
|
|
||||||
Function14000: ; 14000
|
Function14000: ; 14000
|
||||||
ld a, $a
|
ld a, $a
|
||||||
ld [$0000], a
|
ld [MBC3SRamEnable], a
|
||||||
call LatchClock
|
call LatchClock
|
||||||
ld a, $c
|
ld a, $c
|
||||||
ld [Function14000], a
|
ld [MBC3SRamBank], a
|
||||||
ld a, [$a000]
|
ld a, [MBC3RTC]
|
||||||
set 6, a
|
set 6, a
|
||||||
ld [$a000], a
|
ld [MBC3RTC], a
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
ret
|
ret
|
||||||
; 14019
|
; 14019
|
||||||
@ -20406,13 +20406,13 @@ Function14000: ; 14000
|
|||||||
|
|
||||||
Function14019: ; 14019
|
Function14019: ; 14019
|
||||||
ld a, $a
|
ld a, $a
|
||||||
ld [$0000], a
|
ld [MBC3SRamEnable], a
|
||||||
call LatchClock
|
call LatchClock
|
||||||
ld a, $c
|
ld a, $c
|
||||||
ld [Function14000], a
|
ld [MBC3SRamBank], a
|
||||||
ld a, [$a000]
|
ld a, [MBC3RTC]
|
||||||
res 6, a
|
res 6, a
|
||||||
ld [$a000], a
|
ld [MBC3RTC], a
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
ret
|
ret
|
||||||
; 14032
|
; 14032
|
||||||
@ -20472,14 +20472,14 @@ Function14056: ; 14056
|
|||||||
|
|
||||||
Function1406a: ; 1406a
|
Function1406a: ; 1406a
|
||||||
ld a, $a
|
ld a, $a
|
||||||
ld [$0000], a
|
ld [MBC3SRamEnable], a
|
||||||
call LatchClock
|
call LatchClock
|
||||||
ld hl, $a000
|
ld hl, MBC3RTC
|
||||||
ld a, $c
|
ld a, $c
|
||||||
ld [Function14000], a
|
ld [MBC3SRamBank], a
|
||||||
res 7, [hl]
|
res 7, [hl]
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ld [Function14000], a
|
ld [MBC3SRamBank], a
|
||||||
xor a
|
xor a
|
||||||
ld [$ac60], a
|
ld [$ac60], a
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
@ -88577,7 +88577,7 @@ INCBIN "baserom.gbc",$114000,$114243 - $114000
|
|||||||
|
|
||||||
Function114243: ; 114243
|
Function114243: ; 114243
|
||||||
ld a, $a
|
ld a, $a
|
||||||
ld [$0000], a
|
ld [MBC3SRamEnable], a
|
||||||
ld a, [$ff8c]
|
ld a, [$ff8c]
|
||||||
push af
|
push af
|
||||||
push de
|
push de
|
||||||
|
Loading…
Reference in New Issue
Block a user