From 09f7fe5dfee211d4852f7a1a26d3cc195d258f58 Mon Sep 17 00:00:00 2001 From: "Adrian.Conlon" Date: Fri, 22 Sep 2017 22:09:57 +0100 Subject: [PATCH] Couple of small "documentation" changes. Signed-off-by: Adrian.Conlon --- LR35902/src/GameBoyBus.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LR35902/src/GameBoyBus.cpp b/LR35902/src/GameBoyBus.cpp index 15a756f..2e469fc 100644 --- a/LR35902/src/GameBoyBus.cpp +++ b/LR35902/src/GameBoyBus.cpp @@ -296,6 +296,7 @@ void EightBit::GameBoy::Bus::Bus_WrittenByte(const uint16_t address) { case BASE + NR14: // Sound mode 1 register: Frequency hi audio().fromNR14(value); + std::cout << "Voice one frequency: " << audio().voice1()->hertz() << std::endl; break; case BASE + NR21: // Sound mode 2 register: Sound length / Wave pattern duty @@ -354,7 +355,7 @@ void EightBit::GameBoy::Bus::Bus_WrittenByte(const uint16_t address) { audio().fromNR50(value); break; - case BASE + NR51: + case BASE + NR51: // Selection of Sound output terminal audio().fromNR51(value); break; @@ -389,8 +390,6 @@ void EightBit::GameBoy::Bus::Bus_WrittenByte(const uint16_t address) { default: if ((address >= (BASE + WAVE_PATTERN_RAM_START)) && (address <= (BASE + WAVE_PATTERN_RAM_END))) audio().setPackedWaveDatum(address - WAVE_PATTERN_RAM_START, value); - else if ((address > BASE) && (address < (BASE + 0x4c))) - assert(false); } } }