|
Im Magazin „8000 PLUS" wurde im Dezember 1989 der folgende Artikel abgedruckt.
(Im Januar 1990 erfolgte eine Korrektur)
|
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. |
| [Das korrigierte BASIC-Listing und das Assembler-Listing] |
| 1. |
Das Feuerwerk benötigt die BASIC-Version v1.29 (8000er Serie) oder v1.39 (9512 Serie).
Bei allen anderen Versionen funktioniert das Programm NICHT
Ich habe die entsprechenden Stellen in der Version 1.47 gefunden, so dass das Programm auch unter dieser Version laufen sollte.
In der Zeile 210 findet sich die Anweisung;
210 ... v1.39=PEEK(&H151)=&H33Die Adresse &H151 weist auf den Wert in einer der Versionsmeldungen:
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
Das Originalprogramm setzt den Wert der Variablen v1.39 bei der Version 1.39 auf -1, sonst auf 0.
In der Zeile 250 erfolgt dann die Entscheidung, welcher Code verwendet wird — entweder Zeile 560 oder 570.
Ich habe die Zeilen 251 und 252 angefügt, die die Versionen 1.29 und 1.47 abfragen.
Ist keine der beiden Versionen vorhanden, dann bricht das Programm mit einer Fehlermeldung ab.[Das angepasste BASIC-Listing] |
HTML-Bearbeitung von
Werner Cirsovius
Januar 2015
© 8000 PLUS