Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)
This commit is contained in:
@@ -56,7 +56,7 @@ PrintDexEntry:
|
||||
push af
|
||||
xor a
|
||||
ldh [rIF], a
|
||||
ld a, (1 << SERIAL) | (1 << VBLANK)
|
||||
ld a, IE_SERIAL | IE_VBLANK
|
||||
ldh [rIE], a
|
||||
|
||||
call Printer_StartTransmission
|
||||
@@ -140,7 +140,7 @@ PrintPCBox:
|
||||
push af
|
||||
xor a
|
||||
ldh [rIF], a
|
||||
ld a, (1 << SERIAL) | (1 << VBLANK)
|
||||
ld a, IE_SERIAL | IE_VBLANK
|
||||
ldh [rIE], a
|
||||
|
||||
ld hl, hVBlank
|
||||
@@ -221,7 +221,7 @@ PrintUnownStamp:
|
||||
push af
|
||||
xor a
|
||||
ldh [rIF], a
|
||||
ld a, (1 << SERIAL) | (1 << VBLANK)
|
||||
ld a, IE_SERIAL | IE_VBLANK
|
||||
ldh [rIE], a
|
||||
|
||||
ld hl, hVBlank
|
||||
@@ -291,7 +291,7 @@ PrintMail:
|
||||
push af
|
||||
xor a
|
||||
ldh [rIF], a
|
||||
ld a, (1 << SERIAL) | (1 << VBLANK)
|
||||
ld a, IE_SERIAL | IE_VBLANK
|
||||
ldh [rIE], a
|
||||
|
||||
xor a
|
||||
@@ -333,7 +333,7 @@ PrintPartymon:
|
||||
push af
|
||||
xor a
|
||||
ldh [rIF], a
|
||||
ld a, (1 << SERIAL) | (1 << VBLANK)
|
||||
ld a, IE_SERIAL | IE_VBLANK
|
||||
ldh [rIE], a
|
||||
|
||||
xor a
|
||||
@@ -397,7 +397,7 @@ _PrintDiploma:
|
||||
push af
|
||||
xor a
|
||||
ldh [rIF], a
|
||||
ld a, (1 << SERIAL) | (1 << VBLANK)
|
||||
ld a, IE_SERIAL | IE_VBLANK
|
||||
ldh [rIE], a
|
||||
|
||||
ld hl, hVBlank
|
||||
@@ -467,9 +467,9 @@ CheckCancelPrint:
|
||||
ld [wPrinterOpcode], a
|
||||
ld a, $88
|
||||
ldh [rSB], a
|
||||
ld a, (0 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ld a, SC_INTERNAL
|
||||
ldh [rSC], a
|
||||
ld a, (1 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ld a, SC_START | SC_INTERNAL
|
||||
ldh [rSC], a
|
||||
.loop2
|
||||
ld a, [wPrinterOpcode]
|
||||
@@ -485,14 +485,14 @@ CheckCancelPrint:
|
||||
Printer_CopyTilemapToBuffer:
|
||||
hlcoord 0, 0
|
||||
ld de, wPrinterTilemapBuffer
|
||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||
ld bc, SCREEN_AREA
|
||||
call CopyBytes
|
||||
ret
|
||||
|
||||
Printer_CopyBufferToTilemap:
|
||||
ld hl, wPrinterTilemapBuffer
|
||||
decoord 0, 0
|
||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||
ld bc, SCREEN_AREA
|
||||
call CopyBytes
|
||||
ret
|
||||
|
||||
@@ -634,7 +634,7 @@ PrintPCBox_Page1:
|
||||
xor a
|
||||
ld [wWhichBoxMonToPrint], a
|
||||
hlcoord 0, 0
|
||||
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
|
||||
ld bc, SCREEN_AREA
|
||||
ld a, " "
|
||||
call ByteFill
|
||||
call Printer_PlaceEmptyBoxSlotString
|
||||
@@ -671,7 +671,7 @@ PrintPCBox_Page1:
|
||||
|
||||
PrintPCBox_Page2:
|
||||
hlcoord 0, 0
|
||||
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
|
||||
ld bc, SCREEN_AREA
|
||||
ld a, " "
|
||||
call ByteFill
|
||||
call Printer_PlaceEmptyBoxSlotString
|
||||
@@ -688,7 +688,7 @@ PrintPCBox_Page2:
|
||||
|
||||
PrintPCBox_Page3:
|
||||
hlcoord 0, 0
|
||||
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
|
||||
ld bc, SCREEN_AREA
|
||||
ld a, " "
|
||||
call ByteFill
|
||||
call Printer_PlaceEmptyBoxSlotString
|
||||
@@ -705,7 +705,7 @@ PrintPCBox_Page3:
|
||||
|
||||
PrintPCBox_Page4:
|
||||
hlcoord 0, 0
|
||||
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
|
||||
ld bc, SCREEN_AREA
|
||||
ld a, " "
|
||||
call ByteFill
|
||||
call Printer_PlaceEmptyBoxSlotString
|
||||
|
@@ -270,9 +270,9 @@ Printer_WaitHandshake:
|
||||
ld [wPrinterOpcode], a
|
||||
ld a, $88
|
||||
ldh [rSB], a
|
||||
ld a, (0 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ld a, SC_INTERNAL
|
||||
ldh [rSC], a
|
||||
ld a, (1 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ld a, SC_START | SC_INTERNAL
|
||||
ldh [rSC], a
|
||||
ret
|
||||
|
||||
@@ -613,9 +613,9 @@ Printer_Send0x08:
|
||||
|
||||
Printer_SerialSend:
|
||||
ldh [rSB], a
|
||||
ld a, (0 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ld a, SC_INTERNAL
|
||||
ldh [rSC], a
|
||||
ld a, (1 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ld a, SC_START | SC_INTERNAL
|
||||
ldh [rSC], a
|
||||
ret
|
||||
|
||||
|
Reference in New Issue
Block a user