Need listing from ancient PC-DOS BASIC program

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
jdseymour
Newbie
Posts: 3
Joined: Fri May 24, 2019 1:04 pm

Need listing from ancient PC-DOS BASIC program

Post by jdseymour » Fri May 24, 2019 1:12 pm

I am trying to get listings from some old (1985) BASIC programs written on a PC-DOS system.

The files themselves are not text format.

Here's one example:

Code: Select all

000000: FF 30 10 0A 00 AD 20 41 | EA 57 3A B9 20 FE 94 00 ".0...- AjW:9 ~.."
000010: 4A 10 14 00 97 20 D1 52 | 41 4E 44 28 41 29 E7 FF "J.... QRAND(A)g."
000020: 85 28 FF 88 EB 41 29 E9 | 12 00 94 10 1E 00 B8 20 ".(..kA)i......8 "
000030: 42 41 53 45 20 31 3A 86 | 20 46 43 48 4F 49 43 45 "BASE 1:. FCHOICE"
000040: 24 28 0F 0A 29 2C 46 46 | 49 4C 45 24 28 0F 0A 29 "$(..),FFILE$(..)"
000050: 2C 4B 43 48 4F 49 43 45 | 24 28 0F 28 29 2C 4B 46 ",KCHOICE$(.(),KF"
000060: 49 4C 45 53 24 28 0F 28 | 29 2C 4B 4C 49 4E 45 28 "ILES$(.(),KLINE("
000070: 0F 28 29 00 B2 10 28 00 | 82 20 41 E7 12 20 CC 20 ".().2.(.. Ag. L "
000080: 0F 0A 3A C9 20 41 2C 22 | 22 3A 83 20 41 3A C9 20 "..:I A,"":. A:I "
000090: 95 00 D1 10 32 00 BA 20 | 22 41 44 26 44 53 55 42 "..Q.2.: "AD&DSUB"
0000A0: 52 2E 54 58 54 22 20 82 | 20 85 20 41 53 20 23 12 "R.TXT" . . AS #."
0000B0: 00 84 11 3C 00 41 E7 12 | 3A B1 E9 20 D3 20 FF A3 "...<.Ag.:1i S .#"
0000C0: 28 12 29 3A 85 20 23 12 | 2C 4B 43 48 4F 49 43 45 "(.):. #.,KCHOICE"
0000D0: 24 28 41 29 2C 4B 46 49 | 4C 45 24 28 41 29 2C 4B "$(A),KFILE$(A),K"
0000E0: 4C 49 4E 45 24 28 41 29 | 3A 41 E7 41 E9 41 3A 4B "LINE$(A):AgAiA:K"
0000F0: 43 48 4F 49 43 45 24 28 | 41 29 E7 FF 81 28 4B 43 "CHOICE$(A)g..(KC"
Any help would be appreciated.

Thanks!

jdseymour
Newbie
Posts: 3
Joined: Fri May 24, 2019 1:04 pm

Re: Need listing from ancient PC-DOS BASIC program

Post by jdseymour » Sun May 26, 2019 11:08 am

In case anyone comes across this post, I found what I needed.
This file format is a "tokenized" format. Here's one page I found describing the file format: https://robhagemans.github.io/pcbasic/d ... ile-format
Still looking for a converter - but if I can't find one, I can write one easily enough...

jdseymour
Newbie
Posts: 3
Joined: Fri May 24, 2019 1:04 pm

Re: Need listing from ancient PC-DOS BASIC program

Post by jdseymour » Sun May 26, 2019 11:50 am

Last post... The solution: https://github.com/rwtodd/bascat

Post Reply