fix fdc irq handling (but irqs still disabled for now until the arbiter is sorted out)

Thu, 30 Dec 2010 00:41:48 +0000

author
Philip Pemberton <philpem@philpem.me.uk>
date
Thu, 30 Dec 2010 00:41:48 +0000
changeset 87
822d8b2c4639
parent 86
ebce87d87808
child 88
4e5d95fa96e1

fix fdc irq handling (but irqs still disabled for now until the arbiter is sorted out)

src/main.c file | annotate | diff | revisions
     1.1 --- a/src/main.c	Thu Dec 30 00:37:03 2010 +0000
     1.2 +++ b/src/main.c	Thu Dec 30 00:41:48 2010 +0000
     1.3 @@ -210,7 +210,7 @@
     1.4  	uint32_t next_timeslot = SDL_GetTicks() + MILLISECS_PER_TIMESLOT;
     1.5  	uint32_t clock_cycles = 0;
     1.6  	bool exitEmu = false;
     1.7 -	bool lastirq_fdc = false;
     1.8 +//	bool lastirq_fdc = false;
     1.9  	for (;;) {
    1.10  		// Run the CPU for however many cycles we need to. CPU core clock is
    1.11  		// 10MHz, and we're running at 240Hz/timeslot. Thus: 10e6/240 or
    1.12 @@ -333,6 +333,7 @@
    1.13  				lastirq_fdc = false;
    1.14  			}
    1.15  		} else {
    1.16 +			lastirq_fdc = wd2797_get_irq(&state.fdc_ctx);
    1.17  			m68k_set_irq(0);
    1.18  		}
    1.19  */