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