large integers and strange(for me at least) behaviour

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
User avatar
1024MAK
Posts: 3831
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

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

Post 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
User avatar
1024MAK
Posts: 3831
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

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

Post 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
Moggy
Posts: 2524
Joined: Wed Jun 18, 2008 2:00 pm

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

Post by Moggy »

Re the largest number on a zeddy you might find this interesting.

viewtopic.php?f=5&hilit=the%20largest%2 ... 9a238d57bd
bola_dor
Posts: 340
Joined: Wed Oct 02, 2019 5:32 am

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

Post 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..
Ernesto
ZX80, TK83, CZ1000, CZ1500, TK85, CZ2000, CZ1000Plus, CZ1500Plus, CZ Spectrum, TK90X, CZ Spectrum Plus, ZX Spectrum, ZX Spectrum+, ZX Spectrum +2, Sinclair QL. And more to come :D
Post Reply