- [NEW] load binary to memory from inside or as arguments to exe

- Trying berserk
This commit is contained in:
2024-04-25 06:41:35 +02:00
parent b05ce14a95
commit 7eb5df248f
7 changed files with 65 additions and 6 deletions

View File

@@ -28,6 +28,8 @@ int main(int argc, char *argv[])
zx_tape::load("manic.tap");
if (argc==3) { z80debug::loadngo(argv[1], argv[2]); }
bool should_exit = false;
SDL_Event e;
@@ -86,12 +88,10 @@ int main(int argc, char *argv[])
z80debug::stop();
zxscreen::redraw();
} else {
//if (z80::getPC()==0x05C8) zx_tape::go_berserk();
if (z80::getPC()==0x05C8) zx_tape::go_berserk();
uint8_t dt = z80::step();
zx_tape::update(dt);
//if (!zx_tape::berserk()) {
zx_ula::sound_update(dt);
//}
zx_ula::sound_update(dt);
zxscreen::refresh(dt);
}
}