spjewkes / jrnz

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

Could we make Operand a class #14

Open spjewkes opened 7 years ago

spjewkes commented 7 years ago

This might be worth investigating. I'd like to make it clear in the instruction table whether an operand is 8-bits or 16-bits. It's currently inferred by the type. So, N is 8 and NN is 16 bits. It would be nice to have a single 'N' type that's perhaps templated to indicate size. It would make things clearer on the table. Plus I think have the Operand as a class should possibly be beneficial.