Issue List
Typo in m8080.v and sm8080.v #4
Open NULL opened this issue 4 months ago
NULL commented 4 months ago

These versions of the design have a typo in the STAX instruction:

if (opcode4) // use DE pair waddrhold <= regfil`reg_d<<8|regfil`reg_d;

reg_d is used twice.

NULL commented 4 months ago

Same problem in LDAX a few lines down.

NULL commented 4 months ago

Another typo in m8080.v:

              // the illegal opcodes behave as NOPs

              6'b001011, 6'b011001, 6'b011101, 6'b101101, 
              6'b111101: begin

                 state <= `cpus_fetchi; // fetch next instruction
                 pc <= pc + 2'b10; // Next instruction byte, cns 2

								The PC is incremented wrong.

No one