drcjt / CSharp-80

C# AOT compiler for Z80 based computers including the TRS-80 and ZX Spectrum
https://drcjt.github.io/CSharp-80/
GNU General Public License v3.0
51 stars 3 forks source link

Fib sample on ZXSpectrum doesn't halt properly #269

Closed drcjt closed 1 year ago

drcjt commented 1 year ago

The Fib sample continues printing numbers when it should have halted. Final output appears like this:

image

The last output from the program should be -811192543 but numbers ascending from 0 follow it.

Tested this using Klive simulator.

drcjt commented 1 year ago

Using http://jsspeccy.zxdemo.org/ emulator results in a reset after the final fib output appears.

drcjt commented 1 year ago

Fixed as part of #278