MicroCoreLabs / Projects

Ted Fried's MicroCore Labs Projects which include microsequencer-based FPGA cores and emulators for the 8088, 8086, 8051, 6502, 68000, Z80, Risc-V, and also Typewriter and EPROM Emulator projects. MCL51, MCL64, MCL65, MCL65+, MCL68, MCL86, MCL86+, MCL86jr, MCLR5, MCLZ8, MCL6809
390 stars 79 forks source link

M68K - Infinite loop in test all opcodes #13

Closed xahon closed 1 year ago

xahon commented 1 year ago

I have an endless loop in this part of code

image

lines 3898-3916 https://github.com/MicroCoreLabs/Projects/blob/ea66a81165a3f88b8d14fafd05a566c4d131c5ae/MCL68/MC68000_Test_Code/MC68000_test_all_opcodes.X68#L3898-L3916

Easy68k v5.16.1

MicroCoreLabs commented 1 year ago

It seems like is running forever, but it is just running many iterations. If you run in Easy68K you will see it gets past this code and is not an infinite loop.

xahon commented 1 year ago

You are right. It takes a lot of patience to finish the program. I accidentally forgot to turn off the simulation for a night and now it's infinitely loops in ALL_DONE branch