1.1 diff -r 51cbc7a44cd9 -r c149c13aff1c src/state.c 1.2 --- a/src/state.c Wed Dec 29 01:38:54 2010 +0000 1.3 +++ b/src/state.c Wed Dec 29 09:04:43 2010 +0000 1.4 @@ -15,6 +15,12 @@ 1.5 1.6 // Initialise hardware registers 1.7 state.romlmap = false; 1.8 + state.idmarw = state.dmaen = state.dmaenb = false; 1.9 + state.dma_count = state.dma_address = 0; 1.10 + state.pie = 0; 1.11 + state.leds = 0; 1.12 + state.genstat = 0; // FIXME: check this 1.13 + state.bsr0 = state.bsr1 = 0; // FIXME: check this 1.14 1.15 // Allocate Base RAM, making sure the user has specified a valid RAM amount first 1.16 // Basically: 512KiB minimum, 2MiB maximum, in increments of 512KiB.