Page 1 of 1

R38 emulator bug? Use of FRE command after RESET and OLD creates endless loop?

Posted: Thu Jan 06, 2022 4:01 am
by Justin Baldock

Hi,

I think I may have discovered a bug. Just hoping to see if other people can replicate? I'm using a Virtual Windows 10 machine.

Create any BASIC program. 

10 PRINT"TEST"

20 GOTO 10

Then use the RESET command, use the OLD command then try PRINT FRE(0)

The emulator locked up with what appears to be an endless loop. Errors are going to the CMD console are 

WARN: Invalid register 9fbc

WARN: Invalid register 9fb6

WARN: Invalid register 9fbc

WARN: Invalid register 9fbc

If other people can replicate I will create a bug report.

Updated: Bug report added to GitHub.


R38 emulator bug? Use of FRE command after RESET and OLD creates endless loop?

Posted: Thu Jan 06, 2022 6:30 am
by JimmyDansbo

I get the same.

Mine also warns about 9fb7

WARN: Invalid register 9fb7

WARN: Invalid register 9fbc

WARN: Invalid register 9fb6

 


R38 emulator bug? Use of FRE command after RESET and OLD creates endless loop?

Posted: Fri Jan 07, 2022 4:58 am
by Ed Minchau


On 1/5/2022 at 9:01 PM, Justin Baldock said:




Hi,



I think I may have discovered a bug. Just hoping to see if other people can replicate? I'm using a Virtual Windows 10 machine.



Create any BASIC program. 



10 PRINT"TEST"

20 GOTO 10



Then use the RESET command, use the OLD command then try PRINT FRE(0)



The emulator locked up with what appears to be an endless loop. Errors are going to the CMD console are 



WARN: Invalid register 9fbc

WARN: Invalid register 9fb6

WARN: Invalid register 9fbc

WARN: Invalid register 9fbc



If other people can replicate I will create a bug report.



Updated: Bug report added to GitHub.



I tried this:

PRINT TI$

works normally.  Then:

10 PRINT"HELLO WORLD"

20 GOTO 10

then I reset with a CTRL-R and typed OLD, then

PRINT TI$

And I also got Invalid register 9fb7.   So, the problem is likely not with FRE (or with TI$ or PRINT) but with OLD.


R38 emulator bug? Use of FRE command after RESET and OLD creates endless loop?

Posted: Fri Jan 07, 2022 5:42 am
by Justin Baldock

Thanks Ed, I didn't think to try other commands as I had fallen on it when trying to use the FRE command. I will update the bug.