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

Standardize the way in which OPCODEs affect the CCR #119

Closed bpas247 closed 5 years ago

bpas247 commented 6 years ago

Currently, each OPCODE is left the responsibility of affecting the CCR in whichever way they need to. However, a lot of the OPCODEs affect the CCR in either the same or similar ways. EASy68k utilizes a global function to set the CCR bits, which could be a potential solution to this issue.

pupper68k commented 5 years ago

Would a set of functions for Set Extend, Set Negative, Set Zero, etc... work? Could implement getters and setters for status bits, this would make code for opcodes very clear.

bpas247 commented 5 years ago

@pupper68k Seems like a reasonable approach :+1:

bpas247 commented 5 years ago

Resolved by #130