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:
“It seems to me that our three basic needs, for food and security and love, are so mixed and mingled and entwined that we cannot straightly think of one without the others. So it happens that when I write of hunger, I am really writing about love and the hunger for it, and warmth and the love of it and the hunger for it ... and then the warmth and richness and fine reality of hunger satisfied ... and it is all one.”
—M.F.K. Fisher (b. 1908)
“I taught school in the early days of my manhood and I think I know something about mothers. There is a thread of aspiration that runs strong in them. It is the fiber that has formed the most unselfish creatures who inhabit this earth. They want three things only; for their children to be fed, to be healthy, and to make the most of themselves.”
—Lyndon Baines Johnson (19081973)
“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)