> -----Original Message-----
> From: M100 [mailto:[email protected]] On Behalf Of
> Stephen Adolph
> Sent: Saturday, June 20, 2020 03:36
> To: [email protected]
> Subject: Re: [M100] Video out adapter?
>
> CAUTION External Sender: Do not click links or open attachments unless
> you recognize the sender and know the content is safe.
>
> Very cool and thanks for the feedback! I thought I got all the syntax
> errors..can you share what you fixed and where there where additional
> troubles?
Sure, there are just two changes so far that I've actually made to be able to
play the game. There's also an error in the initialization which may be
specific to M100 BASIC - if you die and answer AYE to play again, you get a DD
error in line 330 - I guess other versions of BASIC didn't care if you DIM an
array that already exists. This could be fixed in a minimally invasive way by
renumbering line 330 to, say, 20, and then changing line 6330 to jump to line
30 instead of line 10. I suppose it would be better practice to test whether
the arrays already exist and skip line 330 on replay.
Another thing I noticed but didn't change yet was that you noted one should
CLEAR 1000 before running this - line 260 says REM CLEAR 600 which raises two
questions for me: is 600 enough space, and why not just execute the CLEAR
statement inside the program instead of manually beforehand?
Here's a diff of what I did change to make it run:
$ diff TREK.DO TREK\ -\ fixed.DO
126c126
< 2590 FOR I=1 T OK3:IFK(I,3)=0THEN2700
---
> 2590 FOR I=1 TO K3:IFK(I,3)=0THEN2700
270c270
< 6060 GOSUB1000:H=INT((K(I,3)/QQ)*(2+RND(1))):S=S-H:K(I,3)=K(I,3)/(3+RND(0))
---
> 6060 GOSUB10000:H=INT((K(I,3)/QQ)*(2+RND(1))):S=S-H:K(I,3)=K(I,3)/(3+RND(0))
> At first glance I can see how you can restart Rex but I dont see how the
> VT100 driver is able to work afterwards. I think VT100 would be
> unusable afterwards and would need to be reinstalled.
It does - after using REX I have to remove the hook and go through the
necessary steps to execute VT100.CO before I can use the serial output again.
jim