Single-Step gives wrong results


Single-Stepping through a "BSR" (branch to subroutine) instruction works fine on a real ET-3400, but the emulator gives incorrect results. See the attached short 6-byte demo program and its comments. S6800bg1.asm is the source code. S6800bg1.lst is the most useful file, showing addresses and opcodes in addition to the source code. S6800bg1.obj can be loaded into the emulator instead of hand-entering the 6 bytes of code.

file attachments


RupertAvery wrote Jan 7, 2015 at 12:30 AM

Probably caused by failure to limit to byte values. Seems to have been fixed by ANDing operand results with 0xFF.