mirror of
https://github.com/breadbored/Pokemon-Distribution-ROM.git
synced 2026-04-24 14:59:42 -05:00
Formatting.
This commit is contained in:
parent
227da46d84
commit
47037a3322
18
comm.c
18
comm.c
|
|
@ -424,15 +424,15 @@ void main(void)
|
|||
//trade_byte_primary();
|
||||
// See https://github.com/gbdk-2020/gbdk-2020/pull/577
|
||||
__asm
|
||||
LD A,#0x02 ; .IO_RECEIVING
|
||||
LD (__io_status),A ; Store status
|
||||
LD A,#0x01
|
||||
LDH (0x02),A ; (.SC) Use external clock
|
||||
LD A,(__io_out)
|
||||
LDH (0x01),A ; (.SB) Send __io_out byte
|
||||
LD A,#0x81
|
||||
LDH (0x02),A ; (.SC) Use external clock
|
||||
__endasm;
|
||||
LD A,#0x02 ; .IO_RECEIVING
|
||||
LD (__io_status),A ; Store status
|
||||
LD A,#0x01
|
||||
LDH (0x02),A ; (.SC) Use external clock
|
||||
LD A,(__io_out)
|
||||
LDH (0x01),A ; (.SB) Send __io_out byte
|
||||
LD A,#0x81
|
||||
LDH (0x02),A ; (.SC) Use external clock
|
||||
__endasm;
|
||||
|
||||
while(_io_status == IO_RECEIVING || _io_status == IO_SENDING);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user