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:
“The basic Female body comes with the following accessories: garter belt, panti-girdle, crinoline, camisole, bustle, brassiere, stomacher, chemise, virgin zone, spike heels, nose ring, veil, kid gloves, fishnet stockings, fichu, bandeau, Merry Widow, weepers, chokers, barrettes, bangles, beads, lorgnette, feather boa, basic black, compact, Lycra stretch one-piece with modesty panel, designer peignoir, flannel nightie, lace teddy, bed, head.”
—Margaret Atwood (b. 1939)
“Although good early childhood programs can benefit all children, they are not a quick fix for all of societys illsfrom crime in the streets to adolescent pregnancy, from school failure to unemployment. We must emphasize that good quality early childhood programs can help change the social and educational outcomes for many children, but they are not a panacea; they cannot ameliorate the effects of all harmful social and psychological environments.”
—Barbara Bowman (20th century)
“French rhetorical models are too narrow for the English tradition. Most pernicious of French imports is the notion that there is no person behind a text. Is there anything more affected, aggressive, and relentlessly concrete than a Parisan intellectual behind his/her turgid text? The Parisian is a provincial when he pretends to speak for the universe.”
—Camille Paglia (b. 1947)