Correct constructions of register16_t: the structure is "#ifdef"ed for different endian arrangements.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-01-06 11:27:43 +00:00
parent 3749585398
commit a13ad5042a
8 changed files with 19 additions and 19 deletions

View File

@@ -130,7 +130,7 @@ void EightBit::GameBoy::IoRegisters::Bus_WrittenByte(EightBit::EventArgs) {
case SCX:
break;
case DMA:
m_dmaAddress = { 0, value };
m_dmaAddress = register16_t(0, value);
m_dmaTransferActive = true;
break;
case LY: // R/O