Mon, 06 Dec 2010 08:27:05 +0000
init state variables properly
src/state.c | file | annotate | diff | revisions |
1.1 --- a/src/state.c Mon Dec 06 01:43:04 2010 +0000 1.2 +++ b/src/state.c Mon Dec 06 08:27:05 2010 +0000 1.3 @@ -13,6 +13,12 @@ 1.4 1.5 // Initialise hardware registers 1.6 state.romlmap = false; 1.7 + state.idmarw = state.dmaen = state.dmaenb = false; 1.8 + state.dma_count = state.dma_address = 0; 1.9 + state.pie = 0; 1.10 + state.leds = 0; 1.11 + state.genstat = 0; // FIXME: check this 1.12 + state.bsr0 = state.bsr1 = 0; // FIXME: check this 1.13 1.14 // Allocate RAM, making sure the user has specified a valid RAM amount first 1.15 // Basically: 512KiB minimum, 4MiB maximum, in increments of 512KiB.