src/main.c

changeset 8
e2dcbabc7e1c
parent 7
7b98c7665aae
child 9
3e99497dca33
     1.1 --- a/src/main.c	Sun Nov 28 19:53:53 2010 +0000
     1.2 +++ b/src/main.c	Sun Nov 28 20:02:45 2010 +0000
     1.3 @@ -82,10 +82,6 @@
     1.4  				(romdat2[i+1]));
     1.5  	}
     1.6  
     1.7 -	for (int i=0; i<8; i++)
     1.8 -		printf("%02X %02X ", romdat1[i], romdat2[i]);
     1.9 -	printf("\n%08X %08X\n", state.rom[0], state.rom[1]);
    1.10 -
    1.11  	// free the data arrays and close the files
    1.12  	free(romdat1);
    1.13  	free(romdat2);
    1.14 @@ -115,7 +111,6 @@
    1.15  		// TODO
    1.16  	} else if ((address >= 0x800000) && (address <= 0xBFFFFF)) {
    1.17  		// ROM access
    1.18 -		printf("%08X\n", state.rom[(address & (ROM_SIZE-1)) / 4]);
    1.19  		return state.rom[(address & (ROM_SIZE-1)) / 4];
    1.20  	} else if ((address >= 0x400000) && (address <= 0x7FFFFF)) {
    1.21  		// I/O Registers A
    1.22 @@ -245,7 +240,7 @@
    1.23  	// repeat:
    1.24  	// 		m68k_execute()
    1.25  	// 		m68k_set_irq() every 60ms
    1.26 -	m68k_execute(100000);
    1.27 +	printf("ran for %d cycles\n", m68k_execute(100000));
    1.28  
    1.29  	// shut down and exit
    1.30