mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-10-05 07:21:40 +02:00
Update to v094r06 release.
byuu says: New terminal is in. Much nicer to use now. Command history makes a major difference in usability. The SMP is now fully traceable and debuggable. Basically they act as separate entities, you can trace both at the same time, but for the most part running and stepping is performed on the chip you select. I'm going to put off CPU+SMP interleave support for a while. I don't actually think it'll be too hard. Will get trickier if/when we support coprocessor debugging. Remaining tasks: - aliases - hotkeys - save states - window geometry Basically, the debugger's done. Just have to add the UI fluff. I also removed tracing/memory export from higan. It was always meant to be temporary until the debugger was remade.
This commit is contained in:
@@ -270,7 +270,6 @@ void Interface::save(unsigned id, const stream& stream) {
|
||||
void Interface::unload() {
|
||||
save();
|
||||
cartridge.unload();
|
||||
tracerEnable(false);
|
||||
}
|
||||
|
||||
void Interface::connect(unsigned port, unsigned device) {
|
||||
@@ -341,38 +340,6 @@ void Interface::paletteUpdate(PaletteMode mode) {
|
||||
video.generate_palette(mode);
|
||||
}
|
||||
|
||||
bool Interface::tracerEnable(bool trace) {
|
||||
string pathname = {path(group(ID::ROM)), "debug/"};
|
||||
if(trace == true) directory::create(pathname);
|
||||
|
||||
if(trace == true && !tracer.open()) {
|
||||
for(unsigned n = 0; n <= 999; n++) {
|
||||
string filename = {pathname, "trace-", format<3, '0'>(n), ".log"};
|
||||
if(file::exists(filename)) continue;
|
||||
tracer.open(filename, file::mode::write);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if(trace == false && tracer.open()) {
|
||||
tracer.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void Interface::exportMemory() {
|
||||
string pathname = {path(group(ID::ROM)), "debug/"};
|
||||
directory::create(pathname);
|
||||
|
||||
file::write({pathname, "work.ram"}, cpu.wram, 128 * 1024);
|
||||
file::write({pathname, "video.ram"}, ppu.vram, 64 * 1024);
|
||||
file::write({pathname, "sprite.ram"}, ppu.oam, 544);
|
||||
file::write({pathname, "palette.ram"}, ppu.cgram, 512);
|
||||
file::write({pathname, "apu.ram"}, smp.apuram, 64 * 1024);
|
||||
}
|
||||
|
||||
Interface::Interface() {
|
||||
interface = this;
|
||||
system.init();
|
||||
|
Reference in New Issue
Block a user