- [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:
@@ -47,7 +47,8 @@ namespace zx_tape
|
|||||||
|
|
||||||
void load(const char* filename)
|
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");
|
FILE *f = fopen(filename, "rb");
|
||||||
if (!f) return;
|
if (!f) return;
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ namespace zx_ula
|
|||||||
int port_in(int port)
|
int port_in(int port)
|
||||||
{
|
{
|
||||||
const uint8_t h_addr = (port>>8);
|
const uint8_t h_addr = (port>>8);
|
||||||
uint8_t result = ear ? 0xbf : 0xff;
|
uint8_t result = ear ? 0xff : 0xbf;
|
||||||
|
|
||||||
update_zx_keyboard();
|
update_zx_keyboard();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user