Patch from Vladmir Ivanov (vladitx) - better floating bus support, fixes Castle Wolfenstein random event generation

comp.emulators.apple2, May 4, 2014; Subject: KEGS 0.91 fix for "Beyond Castle Wolfenstein"
This commit is contained in:
David Schmidt 2014-05-04 13:30:59 +00:00
parent c64cc86de9
commit 9ff3a2aba1
1 changed files with 3 additions and 2 deletions

View File

@ -1270,7 +1270,7 @@ io_read(word32 loc, double *cyc_ptr)
/* 0xc020 - 0xc02f */
case 0x20: /* 0xc020 */
/* Click cassette port */
return 0x00;
return float_bus(dcycs);
case 0x21: /* 0xc021 */
/* Not documented, but let's return COLOR_C021 */
return IOR(g_cur_a2_stat & ALL_STAT_COLOR_C021);
@ -1310,7 +1310,8 @@ io_read(word32 loc, double *cyc_ptr)
/* 0xc030 - 0xc03f */
case 0x30: /* 0xc030 */
/* click speaker */
return doc_read_c030(dcycs);
doc_read_c030(dcycs);
return float_bus(dcycs);
case 0x31: /* 0xc031 */
/* 3.5" control */
return g_c031_disk35;