From d1412faf6e4e24eaa0e6765d47b165961f715436 Mon Sep 17 00:00:00 2001 From: "fabio.olimpieri" Date: Sun, 27 Jan 2013 10:27:19 +0000 Subject: [PATCH] Fixed bug in custom info tzx, add select block tzx --- src/gui_sdl.c | 6 +++--- src/menus.c | 2 +- src/tape.c | 14 +++++++++++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/gui_sdl.c b/src/gui_sdl.c index 9638a67..324a47b 100644 --- a/src/gui_sdl.c +++ b/src/gui_sdl.c @@ -98,8 +98,8 @@ static const char *audio_messages[] = { /*05*/ " ", /*06*/ "Audio mode", /*07*/ "^|mono|ABC|ACB|BAC", - /*08 " ", - /*09 "Beeper low pass filter", + /*08 " ", */ + /*09 "Beeper low pass filter",*/ /*10 "^|0|1|2|3|4|5|6|7|max",*/ NULL }; @@ -1593,7 +1593,7 @@ static int save_load_snapshot(int which) break; case -2: case -3: - msgInfo("Error: unsuported snap file",3000,NULL); + msgInfo("Error: unsupported snap file",3000,NULL); break; } } diff --git a/src/menus.c b/src/menus.c index 884936d..656d6fc 100644 --- a/src/menus.c +++ b/src/menus.c @@ -1568,7 +1568,7 @@ void load_z80file() { break; case -2: case -3: - print_string(videomem,"Error: unsuported snap file",-1,232,10,0,ancho); + print_string(videomem,"Error: unsupported snap file",-1,232,10,0,ancho); print_string(videomem,"Press any key",-1,248,10,0,ancho); wait_key(); break; diff --git a/src/tape.c b/src/tape.c index 040f8e4..6566168 100644 --- a/src/tape.c +++ b/src/tape.c @@ -408,6 +408,14 @@ inline void tape_read_tzx (FILE * fichero, int tstados) { } break; + case 0x28: // select block + retval=fread(&value2,1,1,fichero); + retval=fread(&value3,1,1,fichero); + bucle2 = ((unsigned int) value2) + 256 * ((unsigned int) value3); + for(bucle=0;bucle