From 8a63b212608c5f33eee5a8cb8df96883dedf02d8 Mon Sep 17 00:00:00 2001 From: "fabio.olimpieri" Date: Fri, 16 May 2014 13:35:14 +0000 Subject: [PATCH] Added reset message in debug file, fixed bug about currah rom lenght --- src/computer.c | 1 + src/emulator.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/computer.c b/src/computer.c index d2a7206..73e6567 100644 --- a/src/computer.c +++ b/src/computer.c @@ -1726,6 +1726,7 @@ void ResetComputer () { static int bucle; + printf("Reset computer\n"); Z80free_reset (&procesador); load_rom (ordenador.mode128k); diff --git a/src/emulator.c b/src/emulator.c index 261f9fc..aeb0893 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -492,7 +492,7 @@ void load_rom(char type) { else { ordenador.currah_rom_unavailable = 0; - size=fread(ordenador.currahrom,2024,1,fichero); + size=fread(ordenador.currahrom,2048,1,fichero); fclose(fichero); } } @@ -1644,7 +1644,6 @@ int main(int argc,char *argv[]) printf("Init Currah microspeech\n"); currah_microspeech_init(); - printf("Reset computer\n"); ResetComputer(); SDL_Delay(1000);