4-bit virtual CPU
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
454 B

# Mistakes
## Don't design opcodes in your head
You WILL frick up and your binary encodings WILL overlap.
You definitely need some tool to design instruction opcodes
for anything more complicated than just 1-byte instructions.
## Load/store instructions MUST be able to use register as address
I have no idea how we didn't notice this mistake.
I guess it is not too bad for a CPU with 16 bytes of memory,
but for something bigger it is unacceptable.