Skip to content

Commit

Permalink
apple2: WRPROT is active high
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed May 24, 2024
1 parent 2dea5d6 commit 47e67fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ static void drive_change_output(
switch (outp) {
case outp_index: pin = pin_08; break;
case outp_trk0: pin = pin_26; break;
case outp_wrprot: pin = pin_28; break;
case outp_wrprot:
pin = pin_28;
#if defined(APPLE2)
assert ^= 1;
#endif
break;
default:
_drive_change_output(drv, outp, assert);
return;
Expand Down

0 comments on commit 47e67fe

Please sign in to comment.