- [FIX] Corrected key mapping

- [FIX] ULA ports reconnected after reset
- [FIX] port check on IN() was crashing.
This commit is contained in:
2024-04-15 18:06:59 +02:00
parent 045a2238bd
commit 6dfb24da10
3 changed files with 44 additions and 43 deletions

View File

@@ -2,7 +2,7 @@
#include <SDL2/SDL.h>
#include "z80.h"
#include "z80dis.h"
#include "zx_ula.h"
namespace z80debug
{
#define CHR_W 6
@@ -356,7 +356,8 @@ namespace z80debug
z80debug::cont();
} else if (strcmp(cmd, "r")==0 || strcmp(cmd, "reset")==0) {
z80::reset(z80::getMem());
for (int i=0; i<65536; ++i) breakpoints[i]=0;
z80::connect_port(0xfe, zx_ula::port_in, zx_ula::port_out);
//for (int i=0; i<65536; ++i) breakpoints[i]=0;
z80debug::refresh();
} else if (strcmp(cmd, "b")==0 || strcmp(cmd, "break")==0) {
getcmd();