Fixing the DMA test

This commit is contained in:
Zoe Roux
2021-02-04 09:27:04 +01:00
parent 33bb057ee6
commit 2e4e39a696
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ namespace ComSquare::Debugger
if (dialogUI.checkBox->isChecked()) {
try {
value = this->switchToAddrTab(value);
} catch (InvalidAddress &) {}
} catch (const InvalidAddress &) {}
}
QModelIndex index = this->_ui.tableView->model()->index(value >> 4, value & 0x0F);
this->_ui.tableView->scrollTo(index);
+2 -2
View File
@@ -13,8 +13,8 @@ Test(DMA, RomToVRAM)
snes.cartridge->_size = 4000000;
snes.cartridge->_data = new uint8_t[snes.cartridge->_size];
for (unsigned i = 0; i < 0x400; i++) {
snes.cartridge->_data[0xBDED + i * 2] = i;
snes.cartridge->_data[0xBDED + i * 2 + 1] = i >> 8;
snes.cartridge->_data[0x9bded + i * 2] = i;
snes.cartridge->_data[0x9bded + i * 2 + 1] = i >> 8;
}
// Transferring $800 bytes from ROM ($13BE00) to VRam ($2000) via DMA channel 0