Closed devsaurus closed 3 years ago
I confirm it also fixes Time Pilot 84's scrolling playfield.
I agree with the N and Z flags; I clearly missed them. V is listed on the datasheet as being zeroed, but the programmer's manual lists it as "Not Affected". Since others seem confident, I'll take their word rather than setting up a hard 6809 and going off to check myself. :)
@cavnex Excuse me, but you closed this PR without merging.
For what it's worth, I confirmed on a hard 6809 (a CoCo2) that the V flag is unaffected by SEX.
The SEX instruction misses to set N and Z flags. This PR adds respective logic to update N and Z according to B's content.
Update: Clear the V flag unconditionally, courtesy of Jotego.