Skip to content

Commit

Permalink
Fixed bug affecting undocumented opcode IM 2 (ED 7E). It was swapped …
Browse files Browse the repository at this point in the history
…by an undocumented NOP (ED 77). Found by McLeod_ideafix. Detected crashing on MQM3 demo because this bug

Co-authored-by: antoniovillena <_@antoniovillena.es>
  • Loading branch information
sorgelig and antoniovillena committed Aug 3, 2020
1 parent d934430 commit a020e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtl/T80/T80_MCode.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ begin
|"11110000"|"11110001"|"11110010"|"11110011"|"11110100"|"11110101"|"11110110"|"11110111"
|"11111000"|"11111001"|"11111010"|"11111011"|"11111100"|"11111101"|"11111110"|"11111111" =>
null; -- NOP, undocumented
when "01111110"|"01111111" =>
when "01110111"|"01111111" =>
-- NOP, undocumented
null;
-- 8 BIT LOAD GROUP
Expand Down Expand Up @@ -1754,7 +1754,7 @@ begin
when "01010110"|"01110110" =>
-- IM 1
IMode <= "01";
when "01011110"|"01110111" =>
when "01011110"|"01111110" =>
-- IM 2
IMode <= "10";
-- 16 bit arithmetic
Expand Down

0 comments on commit a020e3c

Please sign in to comment.