Added reset message in debug file, fixed bug about currah rom lenght

This commit is contained in:
fabio.olimpieri 2014-05-16 13:35:14 +00:00
parent 87dda5fed6
commit 8a63b21260
2 changed files with 2 additions and 2 deletions

View File

@ -1726,6 +1726,7 @@ void ResetComputer () {
static int bucle; static int bucle;
printf("Reset computer\n");
Z80free_reset (&procesador); Z80free_reset (&procesador);
load_rom (ordenador.mode128k); load_rom (ordenador.mode128k);

View File

@ -492,7 +492,7 @@ void load_rom(char type) {
else else
{ {
ordenador.currah_rom_unavailable = 0; ordenador.currah_rom_unavailable = 0;
size=fread(ordenador.currahrom,2024,1,fichero); size=fread(ordenador.currahrom,2048,1,fichero);
fclose(fichero); fclose(fichero);
} }
} }
@ -1644,7 +1644,6 @@ int main(int argc,char *argv[])
printf("Init Currah microspeech\n"); printf("Init Currah microspeech\n");
currah_microspeech_init(); currah_microspeech_init();
printf("Reset computer\n");
ResetComputer(); ResetComputer();
SDL_Delay(1000); SDL_Delay(1000);