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

refactor CCR use #130

Closed pupper68k closed 5 years ago

pupper68k commented 5 years ago

This PR aims to 'normalize' how opcodes affect the CCR ( #119 ) I initially thought to make getters and setters but when I went to edit the opcode codes, it was not concise enough for me.

I made a function that accepts arguments for each status bit (0/False, 1/True, or 'i' for 'ignore') all opcodes now use this function, and it is far more concise and 'normal.'

As of commit 70315ae all tests pass for me.