The sbTips array is now set to all 0's on initialization so that the functions to create tips no longer mistakenly think the pointers are non-null due to unpredictable data, should get rid of the start/setting changes crashes.
This commit is contained in:
@@ -65,13 +65,13 @@ uint8_t elcr[2] = { 0, 0 };
|
||||
|
||||
void elcr_write(uint16_t port, uint8_t val, void *priv)
|
||||
{
|
||||
pclog("ELCR%i: WRITE %02X\n", port & 1, val);
|
||||
/* pclog("ELCR%i: WRITE %02X\n", port & 1, val); */
|
||||
elcr[port & 1] = val;
|
||||
}
|
||||
|
||||
uint8_t elcr_read(uint16_t port, void *priv)
|
||||
{
|
||||
pclog("ELCR%i: READ %02X\n", port & 1, elcr[port & 1]);
|
||||
/* pclog("ELCR%i: READ %02X\n", port & 1, elcr[port & 1]); */
|
||||
return elcr[port & 1];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user