rzumer / dez80

A Z80 instruction decoding and (dis)assembly library.
MIT License
4 stars 1 forks source link

Differentiate 8- and 16-bit operands #9

Closed rzumer closed 4 years ago

rzumer commented 4 years ago

It can be difficult for implementations to separate 8- and 16-bit paths without operands providing that information. One way to do this would be to have two operand types defined, one for 8-bit operations and the other for 16-bit ones, for those addressing modes that can support both.

rzumer commented 4 years ago

After thinking about it, this may be out of scope for DeZ80. It is possible to determine the size of the operand in a fairly cheap way on the implementation's end by having different paths, for 8- and 16-bit operations, based on the input and output operands.