Post Reply 
Sharp PC-1211/TRS-80 PC-1 program tapes from Radio Shack
08-12-2021, 01:18 PM
Post: #27
RE: Sharp PC-1211/TRS-80 PC-1 program tapes from Radio Shack
Hi Bob,

Quote:I am not familiar with this specific flavor, but in many flavors of BASIC, LET can be implicit, so the two versions of the lines are functionally equivalent, with the original ones possibly being a bit smaller (in bytes). It's easy to try, give it a shot.

When I try it with and without the LET, I get two different answers on the PC-1251 emulator.

For example:

10 M=400
79 IF M>=360M=M-360
100 Print M

This prints 400.

But if I add the LET:

10 M=400
79 IF M>=360 LET M=M-360
100 Print M

This prints 40. ( This is the correct answer)

I think the first version has problems with the implicit multiplication of 360M.

73
Bill WD9EQD
Smithville, NJ
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Sharp PC-1211/TRS-80 PC-1 program tapes from Radio Shack - Bill (Smithville NJ) - 08-12-2021 01:18 PM



User(s) browsing this thread: 1 Guest(s)