Sharp PC-1500 - BASIC Compatibility With Early PC-1500 Models

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 thing nobody asks is why do people take drugs of any sort?... Why do we have these accessories to normal living to live? I mean, is there something wrong with society that’s making us so pressurized, that we cannot live without guarding ourselves against it?
    John Lennon (1940–1980)

    Perhaps the most valuable result of all education is the ability to make yourself do the thing you have to do, when it ought to be done, whether you like it or not; it is the first lesson that ought to be learned; and however early a man’s training begins, its probably the last lesson that he learns thoroughly.
    Thomas Henry Huxley (1825–95)

    The greatest and truest models for all orators ... is Demosthenes. One who has not studied deeply and constantly all the great speeches of the great Athenian, is not prepared to speak in public. Only as the constant companion of Demosthenes, Burke, Fox, Canning and Webster, can we hope to become orators.
    Woodrow Wilson (1856–1924)