Z80 file saved with Pentagon 128k loaded with ZX 128k model

This commit is contained in:
fabio.olimpieri 2015-04-12 19:11:00 +00:00
parent 2833d507d3
commit 9a02a2cf2f

View File

@ -22,6 +22,7 @@
#include "computer.h" #include "computer.h"
#include "emulator.h" #include "emulator.h"
#include "cargador.h" #include "cargador.h"
#include "menu_sdl.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -311,6 +312,11 @@ int load_z80(char *filename) {
case 13: //+2a case 13: //+2a
snap->type=3; // +3 snap->type=3; // +3
break; break;
case 9:
printf("z80: warning Pentagon 128k, using ZX 128k model emulation\n");
msgInfo("RZX recorded with Pentagon 128k", 3000, NULL);
snap->type=1; // 128K
break;
default: default:
fclose(fichero); fclose(fichero);
printf("z80: model not suported: %d\n", tempo2[4]); printf("z80: model not suported: %d\n", tempo2[4]);
@ -337,7 +343,12 @@ int load_z80(char *filename) {
case 7: //3+ case 7: //3+
case 13: //+2a case 13: //+2a
snap->type=3; // +3 snap->type=3; // +3
break; break;
case 9:
printf("z80: warning Pentagon 128k, using ZX 128k model emulation\n");
msgInfo("RZX recorded with Pentagon 128k", 3000, NULL);
snap->type=1; // 128K
break;
default: default:
fclose(fichero); fclose(fichero);
printf("z80: model not suported: %d\n", tempo2[4]); printf("z80: model not suported: %d\n", tempo2[4]);
@ -917,6 +928,10 @@ int extract_screen_z80 (char *screen_memory, FILE * fichero) {
case 13: //+2A case 13: //+2A
model_type=3; // +2A and +3 model_type=3; // +2A and +3
break; break;
case 9:
printf("z80: warning Pentagon 128k, using ZX 128k model emulation\n");
model_type=1; // 128K
break;
default: default:
printf("z80: model not suported: %d\n", tempo2[4]); printf("z80: model not suported: %d\n", tempo2[4]);
free(memo); free(memo);
@ -942,6 +957,10 @@ int extract_screen_z80 (char *screen_memory, FILE * fichero) {
case 13: //+2A case 13: //+2A
model_type=3; // +2A and +3 model_type=3; // +2A and +3
break; break;
case 9:
printf("z80: warning Pentagon 128k, using ZX 128k model emulation\n");
model_type=1; // 128K
break;
default: default:
printf("z80: model not suported: %d\n", tempo2[4]); printf("z80: model not suported: %d\n", tempo2[4]);
free(memo); free(memo);