mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
(nw) binbug: fix it so you can save without console going crazy
This commit is contained in:
parent
2d8207f917
commit
09e733878d
@ -41,12 +41,9 @@
|
|||||||
Status:
|
Status:
|
||||||
- DG640 is completely emulated, even though BINBUG doesn't use most
|
- DG640 is completely emulated, even though BINBUG doesn't use most
|
||||||
of its features.
|
of its features.
|
||||||
- BINBUG works except that the cassette interface isn't the same as
|
|
||||||
real hardware. But you can save, and load it back.
|
|
||||||
|
|
||||||
ToDo:
|
ToDo:
|
||||||
- Need dumps of 4.4 and 5.2.
|
- Need dumps of 4.4 and 5.2.
|
||||||
- Fix cassette
|
|
||||||
|
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@ -119,6 +116,9 @@ WRITE8_MEMBER( binbug_state::binbug_ctrl_w )
|
|||||||
|
|
||||||
WRITE_LINE_MEMBER( binbug_state::kansas_w )
|
WRITE_LINE_MEMBER( binbug_state::kansas_w )
|
||||||
{
|
{
|
||||||
|
if ((m_cass->get_state() & CASSETTE_MASK_UISTATE) != CASSETTE_RECORD)
|
||||||
|
return;
|
||||||
|
|
||||||
u8 twobit = m_cass_data[3] & 15;
|
u8 twobit = m_cass_data[3] & 15;
|
||||||
|
|
||||||
if (state)
|
if (state)
|
||||||
@ -145,6 +145,9 @@ TIMER_DEVICE_CALLBACK_MEMBER( binbug_state::kansas_r )
|
|||||||
m_cassinbit = 1;
|
m_cassinbit = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((m_cass->get_state() & CASSETTE_MASK_UISTATE) != CASSETTE_PLAY)
|
||||||
|
return;
|
||||||
|
|
||||||
/* cassette - turn 1200/2400Hz to a bit */
|
/* cassette - turn 1200/2400Hz to a bit */
|
||||||
uint8_t cass_ws = (m_cass->input() > +0.04) ? 1 : 0;
|
uint8_t cass_ws = (m_cass->input() > +0.04) ? 1 : 0;
|
||||||
|
|
||||||
@ -165,7 +168,6 @@ READ_LINE_MEMBER( binbug_state::binbug_serial_r )
|
|||||||
|
|
||||||
WRITE_LINE_MEMBER( binbug_state::binbug_serial_w )
|
WRITE_LINE_MEMBER( binbug_state::binbug_serial_w )
|
||||||
{
|
{
|
||||||
m_cassinbit = 1;
|
|
||||||
m_cassoutbit = state;
|
m_cassoutbit = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -470,8 +472,6 @@ ToDo:
|
|||||||
- dips
|
- dips
|
||||||
- leds
|
- leds
|
||||||
- need schematic to find out what else is missing
|
- need schematic to find out what else is missing
|
||||||
- cassette
|
|
||||||
- ctc / clock
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user