From e04dcd90d6b3493ef1a29efc37a4dd4db1a184bf Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 19 Oct 2021 01:56:10 +0300 Subject: [PATCH] Fix APU command --- Core/debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/debugger.c b/Core/debugger.c index 04327fe..db4b02f 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -1799,7 +1799,7 @@ static bool apu(GB_gameboy_t *gb, char *arguments, char *modifiers, const debugg GB_log(gb, " Wave:"); for (uint8_t i = 0; i < 16; i++) { GB_log(gb, "%s%X", i % 2? "" : " ", gb->io_registers[GB_IO_WAV_START + i] >> 4); - GB_log(gb, "%s%X", i % 2? "" : " ", gb->io_registers[GB_IO_WAV_START + i] & 0xF); + GB_log(gb, "%X", gb->io_registers[GB_IO_WAV_START + i] & 0xF); } GB_log(gb, "\n"); GB_log(gb, " Current position: %u\n", gb->apu.wave_channel.current_sample_index);