BASIC Compatibility With Early PC-1500 Models
Some earlier model PC-1500's will show a value 1 less in the FOR...NEXT counter on exiting the loop compared to later PC-1500's and the PC-1600.
For example:
10 FOR K=1 TO 10
20 NEXT K
30 PRINT K
K will be set to 11 on later model PC-1500's and PC-1600's, but will be 10 on early PC-1500's.
Consider this example:
10 S=0
20 FOR K=1 TO 10 STEP 4
30 S=S+1
40 NEXT K
50 PRINT S
S will be set to 3 on later model PC-1500's and PC-1600's, but will be 4 on early PC-1500's.
Early model PC-1500's evaluate IF...THEN statements differently. The behaviour can be summarised thus:
| Model | True | False |
|---|---|---|
| PC-1600 / Later PC-1500 | ≠0 | 0 |
| Early PC-1500 | >0 | <0 |
An early model PC-1500 can be detected by using the command: PEEK&C5C0.
If the value returned is 6, it is an early model.
Read more about this topic: Sharp PC-1500
Famous quotes containing the words basic, early and/or models:
“Man has lost the basic skill of the ape, the ability to scratch its back. Which gave it extraordinary independence, and the liberty to associate for reasons other than the need for mutual back-scratching.”
—Jean Baudrillard (b. 1929)
“Some would find fault with the morning red, if they ever got up early enough.”
—Henry David Thoreau (18171862)
“Friends broaden our horizons. They serve as new models with whom we can identify. They allow us to be ourselvesand accept us that way. They enhance our self-esteem because they think were okay, because we matter to them. And because they matter to usfor various reasons, at various levels of intensitythey enrich the quality of our emotional life.”
—Judith Viorst (20th century)