|
|
|
|
|
by phkahler
1733 days ago
|
|
I learned on an 8080 system (Interact) that also had MS basic. Almost every one of 256 op-codes is used on the 8080. That's not to say there were that many instructions. For example register-to-register move might be considered one instruction but the source and destination register are encoded into that one byte so there are many reg-reg moves. Same with add sub, etc... My father wrote a disassembler in basic to read out the ROM and he made his own mnemonics which amounted to probably 20-40 actual instructions (I still have it and could look it up), but there were maybe 8 entries in the opcode table that did nothing. |
|
As a pragmatic manner, I don't regard having the register and/or addressing mode encoded into the opcode as a separate opcode.
Emulating a modern 64 bit processor would be a major chunk of work, but the old 8 bit ones are simple.