- [NEW] load binary to memory from inside or as arguments to exe
- Trying berserk
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user