Opcode 7e is implemented as "mov ,x,opr8a" but should be "mov ,x+,opr8a". Postincrementation is missing. Possible fix:
@@ -2038,6 +1931,7 @@ dataMux <= outHelp; addrMux <= addrTM; regPC <= regPC + 1;
regHX <= regHX + 1; --Postincrement
mainFSM <= "0110";
when x"80" | x"82" => -- RTI, RTT
regHX(7 downto 0) <= datain;@@ -2424,6 +2318,7 @@Corrected opcode 0x7E added regHX <= regHX + 1;
Thank you