src/memory.c

changeset 97
240e195e4bed
parent 93
09e3ddeb869a
child 100
d6f699f89303
     1.1 --- a/src/memory.c	Tue Mar 01 21:33:32 2011 +0000
     1.2 +++ b/src/memory.c	Wed Mar 02 07:16:32 2011 +0000
     1.3 @@ -285,6 +285,12 @@
     1.4  				ENFORCE_SIZE_W(bits, address, 16, "MISCCON");
     1.5  				// TODO: handle the ctrl bits properly
     1.6  				// TODO: &0x8000 --> dismiss 60hz intr
     1.7 +				if (data & 0x8000){
     1.8 +					state.timer_enabled = 1;
     1.9 +				}else{
    1.10 +					state.timer_enabled = 0;
    1.11 +					state.timer_asserted = 0;
    1.12 +				}
    1.13  				state.dma_reading = (data & 0x4000);
    1.14  				if (state.leds != ((~data & 0xF00) >> 8)) {
    1.15  					state.leds = (~data & 0xF00) >> 8;