Closed rzumer closed 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>.
Instruction::from_bytes()
Read
Peekable<Bytes>
Fixed by https://github.com/rzumer/dez80/commit/6415755d45b51c1a02110a83ea75c4f6fbff4ebf.
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 fromRead
toPeekable<Bytes>
.