Chris-Johnston / Easier68k

Work In Progress - A Python M68k assembler and simulator.
https://chris-johnston.me/Easier68k/
MIT License
15 stars 6 forks source link

Make opcode (actually) abstract #132

Closed Chris-Johnston closed 5 years ago

Chris-Johnston commented 5 years ago

This PR makes the base opcode class abstract, and requires that all subclasses of Opcode implement the methods that it requires. My goal for opcodes is to reduce the amount of repeated code.

Right after I made this change I found three cases where classes were incomplete, so it's already proved to be useful.