From 37374eba994e0a7fd6691af00666544d6c0aebe0 Mon Sep 17 00:00:00 2001 From: "Wayne Rittimann, Jr" Date: Thu, 29 Aug 2024 13:48:33 -0500 Subject: [PATCH] 4541 - Add $4C, $50, and $70 commands #736 $4C - release all lines $50 - enable all protocol exts (JiffyDOS, C128 fast) $70 - disable all protocol exts --- src/vhdl/iec_serial.vhdl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/vhdl/iec_serial.vhdl b/src/vhdl/iec_serial.vhdl index 34089286a..9536ed793 100644 --- a/src/vhdl/iec_serial.vhdl +++ b/src/vhdl/iec_serial.vhdl @@ -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'; @@ -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)