mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-16 04:20:13 +00:00
Fixing the DMA test
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user