|
The following article was printed in December 1989 of the magazine „8000 PLUS".
(Followed by a correction in January 1990)
|
FIREWORXBy Richard Cox |
Oooooooo!
Ahhhhhh!
Wow!
and erm.....bang!
Light up the sky with Basic fireworx!
|
| Key | Key no |
| Position on screen | |
| [RELAY] | 01 |
| bottom left | |
| [ENTER] | 78 |
| bottom right | |
| [2] | 07 |
| middle | |
| [EOL] | 13 |
| top left | |
| [5] | 14 |
| top middle | |
| [WORD/CHAR] | 05 |
| top right |
| This is the demonstration display which can be edited or completely replaced at your whim. |
| Thi5 section puts you into keyboard mode and allows you to create your own on screen displays. |
| Line 210 contains a version check which looks to see which version of Basic your machine uses. 9512s use v1.39 while the 8000 series use v1.29. Line 250 acts on this by selecting the correct line of code to be loaded at the end. |
| The dreaded DATA. As Richard Cox says 'Just think beautiful moving pictures. |
FIREWORX WHICH DIDN'T
As many of you will have noticed, last month's Fireworx program was more like "DAMPSQUIB.BAS".
Our fault entirely, and like Guy Fawkes, we have suffered suitably appalling punishment. The problem arose in line 260 which ended rather abruptly. The line should be as follows:
READ x$:WHILE x$<>"*":POKE a,VAL("&H"+x$):a=a+1:READ x$:WEND:RETURN
Many apologies to Richard Cox annd to everyone who spent time tearing their hair out. |
| [The corrected BASIC listing and the assembler listing] |
| 1. |
The program Fireworx requires BASIC version v1.29 (8000 series) or v1.39 (9512 series).
On all other versions this program does NOT work.
I found the appropriate locations for version 1.47 so that the program should run under this version.
Line 210 reads among others:
210 ... v1.39=PEEK(&H151)=&H33The address &H151 points to a character within the version message:
Mallard-80 BASIC with Jetsam Version 1.29
^ &H32
Mallard-80 BASIC with Jetsam Version 1.39
^ &H33
Mallard-80 BASIC with Jetsam Version 1.47
^ &H34
The original program sets the value of variable v1.39 to -1 in case
of version 1.39. Otherwise it will be set to 0.
In line 250 the decision will be made which code to select — either line 560 or 570.
I appended lines 251 and 252 as well requesting versions 1.29 and 1.47.
If none of them is found program breaks with an error message.[The adapted BASIC listing] |
HTML customization by
Werner Cirsovius
January 2015
© 8000 PLUS