Page 2 of 2

Re: large integers and strange(for me at least) behaviour

Posted: Sun Oct 03, 2021 6:29 pm
by 1024MAK
bola_dor wrote: Sun Oct 03, 2021 6:13 pm Awesome!!! it fails at the same 8400511 entry.. did you check how many iterations runs until it fails?
Do you mean what happens without lines 106 or 126?
Mark

Re: large integers and strange(for me at least) behaviour

Posted: Sun Oct 03, 2021 6:44 pm
by 1024MAK
1024MAK wrote: Sun Oct 03, 2021 6:29 pm
bola_dor wrote: Sun Oct 03, 2021 6:13 pm Awesome!!! it fails at the same 8400511 entry.. did you check how many iterations runs until it fails?
Do you mean what happens without lines 106 or 126?
Mark
It actually does not get much further, but errors out instead. This is with a starting number of 8400511. The variable (C) containing the number of steps at this point contains 68.

This is the result on screen:
F0C82B55-3F51-4036-BEA6-4683D475D716.jpeg
Mark

Re: large integers and strange(for me at least) behaviour

Posted: Sun Oct 03, 2021 7:18 pm
by Moggy
Re the largest number on a zeddy you might find this interesting.

viewtopic.php?f=5&hilit=the%20largest%2 ... 9a238d57bd

Re: large integers and strange(for me at least) behaviour

Posted: Sun Oct 03, 2021 7:20 pm
by bola_dor
Exactly. On ZX81 it runs correctly about 300 rounds (starting on 8400511) and in Spectrum about 90.. I m out right now, I can check the exact number when I get back home..