fokoid / chipper8

CHIP-8 interpreter in Rust
Apache License 2.0
0 stars 0 forks source link

make mapping between opcodes & instructions configurable #107

Open fokoid opened 1 year ago

fokoid commented 1 year ago

presently this mapping is stateless, provided by TryInto implementations on OpCode and Instruction (although errors are allowed). another option (requiring major refactoring) would be a separate parser/assembler with its own configuration responsible for the mapping.

Case for Stateless

Case for Stateful

Having our Cake and Eating It