Skip to content

Commit

Permalink
4541 - Add $4C, $50, and $70 commands MEGA65#736
Browse files Browse the repository at this point in the history
$4C - release all lines
$50 - enable all protocol exts (JiffyDOS, C128 fast)
$70 - disable all protocol exts
  • Loading branch information
johnwayner committed Aug 29, 2024
1 parent 6d764c4 commit 37374eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/vhdl/iec_serial.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,10 @@ begin
when x"72" => -- Drive IEC reset pin 0V
iec_reset_n <= '0';
iec_reset_int <= '0';
when x"4C" => -- Release all lines
a('1'); d('1'); c('1'); s('1');
iec_reset_n <= '1';
iec_reset_int <= '1';

-- Allow enabling and disabling of JiffyDOS offering
when x"4A" => jiffydos_enabled <= '1';
Expand All @@ -683,6 +687,12 @@ begin
-- and also c128 fast serial
when x"46" => c128fast_enabled <= '1';
when x"66" => c128fast_enabled <= '0';
when x"50" => -- Enable protocol extensions
jiffydos_enabled <= '1';
c128fast_enabled <= '1';
when x"70" => -- Disable protocol extensions
jiffydos_enabled <= '0';
c128fast_enabled <= '0';

-- Protocol level commands
when x"30" => -- Request device attention (send data byte under attention)
Expand Down

0 comments on commit 37374eb

Please sign in to comment.