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: 5102
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
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
User avatar
1024MAK
Posts: 5102
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
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
Moggy
Posts: 3231
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: 398
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 USA, ZX81UK, ZX Spectrum, ZX Spectrum+, ZX Spectrum 128+ UK, ZX Spectrum +2/A, Sinclair QL, CZ1000, CZ1500, CZ2000, CZ1000Plus, CZ1500Plus, CZ Spectrum, CZ Spectrum Plus, TK83, TK85, TK90X, TK95. TS2068. And more to come :D
Post Reply