Zx Breakout Type in Error

Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Zx Breakout Type in Error

Post by Crayon21 »

so,after hours of typing, I got it to run. the ball sails to the top right and bounces, then I get an integer out of range error in 4020.

the thing is, I checked and double checked, there is nothing in the line about range. maybe I messed up somewhere. the Code is listed in pages 27 through 30 in the ZX Spectrum Games Code Club book by Gary Plowman. Any help would be appreciated. I don't want to have to redo the whole thing in z80 assembler. I would appreciate a prompt response
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
1024MAK
Posts: 5103
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Zx Breakout Type in Error

Post by 1024MAK »

Note that I have not got the program listing in front of me to refer to, so this is general advice.

If a BASIC program tries to position the curser position / print position or the graphics plot position outside the screen area, you may get this error.

After the error, BASIC lets you use direct commands to examine the contents of any of the variables. So use PRINT z where z is any variable you suspect may be causing problems.

Possible reasons for the cause of errors in programs entered from printed listings include (but are not limited to):
  • A line of code that was missed when the program was typed in,
  • A typo in the code,
  • The wrong character used, so for example a 1 in place of an I, or an i, or a missing symbol, e.g. a - (minus) sign left out,
  • A misprint in the published listing,
  • Part of the program listing missed out from the published listing.
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.
Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Re: Zx Breakout Type in Error

Post by Crayon21 »

probably a typo, because I typed everything exactly as written
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: Zx Breakout Type in Error

Post by gammaray »

Hi. Was there a code listing, picture or link to the document this program was shown?

C
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Re: Zx Breakout Type in Error

Post by Crayon21 »

gammaray wrote: Thu Nov 08, 2018 3:05 am Hi. Was there a code listing, picture or link to the document this program was shown?

https://www.amazon.com/ZX-Spectrum-Game ... B018R4DS22

C
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Re: Zx Breakout Type in Error

Post by Crayon21 »

any luck?
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: Zx Breakout Type in Error

Post by gammaray »

Haven't received book yet from Amazon. :)
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Re: Zx Breakout Type in Error

Post by Crayon21 »

gammaray wrote: Fri Nov 16, 2018 3:45 am Haven't received book yet from Amazon. :)
any luck yet?
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Zx Breakout Type in Error

Post by XavSnap »

What is a "book" ?
:lol:

We haven't this book, this program and we can't debug your mind...
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: Zx Breakout Type in Error

Post by gammaray »

Order stalled and I reactivated ...
amazon book games.jpg
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
Post Reply