Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)
This commit is contained in:
@@ -208,7 +208,7 @@ MobileAPI_SetTimer:
|
||||
add hl, bc
|
||||
ld c, [hl]
|
||||
inc hl
|
||||
ldh a, [rKEY1]
|
||||
ldh a, [rSPD]
|
||||
bit 7, a
|
||||
jr nz, .asm_1100f9
|
||||
ld a, e
|
||||
@@ -230,9 +230,9 @@ MobileAPI_SetTimer:
|
||||
ld [wc820], a
|
||||
ld [wc815], a
|
||||
ld c, LOW(rTAC)
|
||||
ld a, rTAC_65536_HZ
|
||||
ld a, TAC_65KHZ
|
||||
ldh [c], a
|
||||
ld a, 1 << rTAC_ON | rTAC_65536_HZ
|
||||
ld a, TAC_START | TAC_65KHZ
|
||||
ldh [c], a
|
||||
ret
|
||||
|
||||
@@ -621,7 +621,7 @@ Function11032c:
|
||||
Function110393:
|
||||
ld c, LOW(rIE)
|
||||
ldh a, [c]
|
||||
or (1 << SERIAL) | (1 << TIMER)
|
||||
or IE_SERIAL | IE_TIMER
|
||||
ldh [c], a
|
||||
ret
|
||||
|
||||
@@ -3433,7 +3433,7 @@ Function111686:
|
||||
ldh [rTAC], a
|
||||
ld c, LOW(rIE)
|
||||
ldh a, [c]
|
||||
and ~(1 << SERIAL | 1 << TIMER)
|
||||
and ~(IE_SERIAL | IE_TIMER)
|
||||
ldh [c], a
|
||||
ld a, [wMobileSDK_PacketBuffer + 1]
|
||||
ld [wc86a], a
|
||||
@@ -4118,9 +4118,9 @@ Function111b21:
|
||||
Function111b2e:
|
||||
ld hl, wc822
|
||||
set 1, [hl]
|
||||
ld a, (0 << rSC_ON) | (1 << rSC_CGB) | (1 << rSC_CLOCK)
|
||||
ld a, SC_FAST | SC_INTERNAL
|
||||
ldh [rSC], a
|
||||
ld a, (1 << rSC_ON) | (1 << rSC_CGB) | (1 << rSC_CLOCK)
|
||||
ld a, SC_START | SC_FAST | SC_INTERNAL
|
||||
ldh [rSC], a
|
||||
|
||||
Function111b3b:
|
||||
@@ -4723,7 +4723,7 @@ PacketSendBytes:
|
||||
ret
|
||||
.asm_111f17
|
||||
ldh a, [rSC]
|
||||
and 1 << rSC_ON
|
||||
and SC_START
|
||||
jr nz, .asm_111f17
|
||||
di
|
||||
ld a, [wMobileSDK_SendCommandID]
|
||||
|
Reference in New Issue
Block a user