Fix a couple of uninitialised variables.
This commit is contained in:
parent
083ca3d4a2
commit
3fb4eae1b0
2 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ void img_load(int drive, char *fn)
|
||||||
uint8_t bpb_sectors;
|
uint8_t bpb_sectors;
|
||||||
uint8_t bpb_sides;
|
uint8_t bpb_sides;
|
||||||
uint32_t bpt;
|
uint32_t bpt;
|
||||||
uint8_t max_spt; /* Used for XDF detection. */
|
uint8_t max_spt = 0; /* Used for XDF detection. */
|
||||||
|
|
||||||
if (!xdf_maps_initialized) initialize_xdf_maps(); /* Initialize XDF maps, will need them to properly register sectors in tracks. */
|
if (!xdf_maps_initialized) initialize_xdf_maps(); /* Initialize XDF maps, will need them to properly register sectors in tracks. */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -600,7 +600,7 @@ gus->curx[gus->voice]=(gus->curx[gus->voice]&0xFFF8000)|((val&0x7F)<<8);
|
||||||
uint8_t readgus(uint16_t addr, void *p)
|
uint8_t readgus(uint16_t addr, void *p)
|
||||||
{
|
{
|
||||||
gus_t *gus = (gus_t *)p;
|
gus_t *gus = (gus_t *)p;
|
||||||
uint8_t val;
|
uint8_t val = 0xff;
|
||||||
// /*if (addr!=0x246) */printf("Read GUS %04X %04X(%06X):%04X %02X\n",addr,CS,cs,pc,gus->global);
|
// /*if (addr!=0x246) */printf("Read GUS %04X %04X(%06X):%04X %02X\n",addr,CS,cs,pc,gus->global);
|
||||||
switch (addr)
|
switch (addr)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue