From 10c9be60b3a17d4428b6de2c9365050170171f6f Mon Sep 17 00:00:00 2001 From: GrenderG Date: Tue, 26 Sep 2023 22:22:54 +0200 Subject: [PATCH] Formatting x2 --- comm.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/comm.c b/comm.c index 7673320..4bd6952 100644 --- a/comm.c +++ b/comm.c @@ -421,18 +421,18 @@ void main(void) __endasm; } - //trade_byte_primary(); + // 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);