spjewkes / jrnz

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

Refactor StorageElement to have an 8bit and 16bit version #16

Open spjewkes opened 7 years ago

spjewkes commented 7 years ago

We've made the StorageElement class too generic when I think it should only be handling 8 and 16 bit version. This actually may help with setting flags too where there are differences between behaviour. It should also catch out cases where there's an attempt to do something that isn't supported for a particular bitsize.