Page 1 of 1

Emulating unofficial opcodes

Posted: Wed Apr 07, 2021 12:38 pm
by oRBIT2002
Some of these are doing two things at once. RLA rotates memory and AND's result with accumulator.
I'm trying to emulate this behaviour in my emulator but it's a bit confusing how to handle the CPU status flags. I have to emulate these behaviour with two 68k instructions (I'm on an Amiga atm), but how do I know which flags to use (the ones created from the memory shift or the and-operation)?
Hope you understand my problem.

EDIT: Here was the answer, well documented behaviour: