robhagemans / basicode

A collection of BASICODE programs by various authors
35 stars 11 forks source link

KC-Club: programs problems #17

Open Geist-zz opened 2 years ago

Geist-zz commented 2 years ago

ATLAS - Missing " in 1190 INPUT Taste";A, ! instead of REM in line 1200 ANTWORT - screens disappear, browser slows down (ex. tab switching; CPU is in normal use). BASE - text scrolls too fast DISCO - RESTORE 25000/25100, Machine-specific subroutines (ERASE; replacement - setting variable to empty string) ENTFERN - option E, last(?) page - Illegal function call in 1690 FIGUREN2 - not on the interpreter program list FRAGE+AN - code corruption(?) from 1120 GLOBUSS - RESTORE 25000 JOURN03 - Syntax error in 26170 (DATA separated by commas) KARAKGRA - corrupted REM: 7600 RE} KLIMA/GR - identical code KONVERT .SSS/UUU - two files listed, only one KONVERT in interpreter LINEGR/LINIEN - identical code (differ only by spaces in lines 1130/40) LOGO - after selecting difficulty (1/2): Subscript out of range in 1120. indices 5 out of bounds 4 POEME - no : after gosub at 1930 POST - corrupted(?) code from 1830 RAFIDOK .SSS - better filename would be GRAFIDOK.SSS RSA1 - choosing option E: Illegal function call in 1640 RUSSISCH/RUSS_HOL - identical programs SLIDER1/2 - doesn't seem to work correctly - you can move some of the walls... (program or interpreter fault) SLIDER2 - interpreter doesn't recognize TO/THEN in two lines (they are without spaces) UMWELT - RESTORE 25200, Machine-specific subroutines (ERASE; replacement - setting variable to empty string) UNRVERB - missing DATA in 25000 WORK/BESTAND - Type mismatch in 1010 - PRINT LN(600) gives Exception TypeError: value is undefined WURM - too fast (LINDWURM works ok, but it doesn't seems to have the "endgame")

robhagemans commented 2 years ago

Regarding the "corrupted" programs FRAGE+AN, POST, these look like they are partially tokenised, presumably using KC BASIC tokens. I can't find a list of those online - apparently they are given in a book by Horst Völz - but it should be possible to deduct the translation table from context. A nice puzzle for a slow day perhaps. Some of the other syntax errors and corruption may well also have been caused by a buggy detokeniser.

robhagemans commented 1 year ago

Note: This site https://hc-ddr.hucki.net/wiki/lib/exe/fetch.php/z9001/ contains descriptions of and downloads for the BASIC used by Robotron. In particular, there's a Perl script basic-decode.pl in https://hc-ddr.hucki.net/wiki/lib/exe/fetch.php/z9001/basic.zip - this doesn't work unchanged on the corrupted files, but it does contain a token dictionary that agrees with the few tokens I had guessed from context. So it could be used to create a script to fix these files.

robhagemans commented 1 year ago

There's another (Windows-only, but works under WINE) conversion program included in https://www.basicode.de/download/BACOBAS3.zip . Using that, I've updated POST and FRAGE+AN based on the original SSS binaries.