rzumer / dez80

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

Better single-instruction decoding API #11

Closed rzumer closed 4 years ago

rzumer commented 4 years ago

The current one is a bit convoluted. Instruction::from_bytes() is more intuitive in comparison, so the public single-instruction decode function should be similar, and abstract the conversion from Read to Peekable<Bytes>.

rzumer commented 4 years ago

Fixed by https://github.com/rzumer/dez80/commit/6415755d45b51c1a02110a83ea75c4f6fbff4ebf.