Reduce code duplication in all MOV instructions. You can refer to commit 9f4ae73 for starters.
Steps:
- Create function
genericMov(vm *Machine, src uint8, dest uint8) error
- Replace all duplicated code in every variant of
MOV instruction with genericMov
Reduce code duplication in all
MOVinstructions. You can refer to commit 9f4ae73 for starters.Steps:
genericMov(vm *Machine, src uint8, dest uint8) errorMOVinstruction withgenericMov