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

Add NEG #118

Closed bpas247 closed 6 years ago

bpas247 commented 6 years ago

Fixes #16

Adds the Negate (NEG) Opcode. Subtracts the destination operand from 0 and stores the result in the destination location. NEG performs a 2's complement. All bits of the CCR are modified by a NEG operation.

Chris-Johnston commented 6 years ago

Do you think we should start to steal borrow the descriptions from the 68k manual and add them to the opcode docstrings? The clear benefit to this would be that whenever the docs are set up, all of the information relating to this can be found in one location.

image

bpas247 commented 6 years ago

@Chris-Johnston

Do you think we should start to ~steal~ borrow the descriptions from the 68k manual and add them to the opcode docstrings?

This is an excellent idea, but we would need to re-document all of the existing OPCODEs. Also, how would we go about formatting our docstrings to include this information?