- [FIX] No se podía carregar una nova cinta perque no s'alliberaba l'anterior

- [FIX] no se tornava el bit6 correcte en el port 0xFE (i el teclat "anava mal" segons com el mirares)
This commit is contained in:
2024-12-02 17:45:42 +01:00
parent 18406d4332
commit cbbf39c6cc
2 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,8 @@ namespace zx_tape
void load(const char* filename)
{
//[TODO] Free memory that might be taken by previous tape
if (!blocks.empty()) for (auto block : blocks) free(block.data);
blocks.clear();
FILE *f = fopen(filename, "rb");
if (!f) return;

View File

@@ -125,7 +125,7 @@ namespace zx_ula
int port_in(int port)
{
const uint8_t h_addr = (port>>8);
uint8_t result = ear ? 0xbf : 0xff;
uint8_t result = ear ? 0xff : 0xbf;
update_zx_keyboard();