Changes

Jump to: navigation, search

Scott Adams

931 bytes added, 17:03, 10 August 2018
Program Notes
# Replace SF= F OR CINT(2↑P+.5) with SF(P)= -1
# Replace SF=SF AND NOT CINT(.5+2↑P) with SF(P)=0
 
* IF ... THEN ... ELSE statements in TRS-80 Level II BASIC assert that, if the condition being tested is true, the statements between the words THEN and ELSE are performed. If the condition is false, the statements following the ELSE are performed. If your BASIC does not have the ELSE clause, you will have to split the statement into multiple lines.
 
* LEFT(A$,B) returns the substring of A$ from the first character to the Bth character. Similarly, MID$(A$,B,C) returns the substring from the Bth character on, for a total of C characters, and RIGHT$(A$) returns the last (ie: rightmost) B characters in the string.
 
* If you cannot create a two-dimensional array of strings (eg: DIM A$(20,3) as a twenty-row by three-column array of strings), you will find conversion nearly impossible because this feature is used heavily in the program.
 
Happy adventuring, and watch out for the tides on Pirate's Island-they can be tricky.
==References==

Navigation menu

MediaWiki spam blocked by CleanTalk.