spjewkes / jrnz

A work-in-progress ZX Spectrum emulator
MIT License
1 stars 0 forks source link

Get rid of instruction type in favour of specialized classes. #19

Open spjewkes opened 7 years ago

spjewkes commented 7 years ago

We should get rid of the switch statement and have different instructions classes that specialise their own execute() function. That would get rid of a function that does the switch and instead it would dive straight into each instruction.