Added some cassette-related sanity checks, closes #1567.
This commit is contained in:
@@ -516,7 +516,7 @@ kbd_write(uint16_t port, uint8_t val, void *priv)
|
||||
|
||||
timer_process();
|
||||
|
||||
if (kbd->type <= 1)
|
||||
if ((kbd->type <= 1) && (cassette != NULL))
|
||||
pc_cas_set_motor(cassette, (kbd->pb & 0x08) == 0);
|
||||
|
||||
speaker_update();
|
||||
|
@@ -618,6 +618,7 @@ kbd_write(uint16_t port, uint8_t val, void *priv)
|
||||
|
||||
timer_process();
|
||||
|
||||
if (cassette != NULL)
|
||||
pc_cas_set_motor(cassette, (pcjr->pb & 0x08) == 0);
|
||||
|
||||
speaker_update();
|
||||
|
Reference in New Issue
Block a user