Interesting Sharp PC-1500 behavior

Talk in English

Modérateur : Politburo

Répondre
Jeff_Birt
Fonctionne à 75 bauds
Fonctionne à 75 bauds
Messages : 43
Enregistré le : 14 sept. 2022 20:00

Interesting Sharp PC-1500 behavior

Message par Jeff_Birt »

On your PC-1500 or TRS-80 PC-2 try this little program:

10 PRINT "LINE 10"
20 PRINT "LINE 20"
30 END
RUN it, and when "LINE 10" is displayed type "PRINT 5+5" (no quotes) and hit ENTER. Then hit ENTER again.

What happens? Does it surprise you?
Avatar du membre
badaze
Fonctionne à 14400 bauds
Fonctionne à 14400 bauds
Messages : 8384
Enregistré le : 12 févr. 2007 18:36
Localisation : Pas très loin de Lyon
Contact :

Re: Interesting Sharp PC-1500 behavior

Message par badaze »

I tried with pocketEmul and I saw LINE 20.
Tout est bon dans le pocket.
Moi j'aime tout.... Casio, HP, Sharp, TI et les autres sauf que les TI semblent ne pas m'aimer :(
http://www.emmella.fr
Mes Casio - HP - Sharp - TI
Homme invisible.
Avatar du membre
C.Ret
Fonctionne à 9600 bauds
Fonctionne à 9600 bauds
Messages : 3405
Enregistré le : 31 mai 2008 23:43
Localisation : N 49°22 E 6°10

Re: Interesting Sharp PC-1500 behavior

Message par C.Ret »

Héhé !

When the text LINE 10 is displayed, you don't even need to type PRINT, you can also type in any calculation you want or just press the red clear key [CL].
For example, 5+5 [ENTER]
When the result of your calculation(s) (or a clear line) is displayed, pressing the [ENTER] key a second time continues the execution of your program.

The SHARP PC-1500 is not the only SHARP to do this, many of them behave the same way. In the PC-1211 manual, this feature is called "validating displayed line".
Since these devices have one only line display, the "validation with [ENTER] key" is the normal and unsurprisily behavior to indicate at the pocket that you read the display.
SHARP PC-1211 PC-1360 EL-5150 PC-E500 | Commodore C=128D | Texas Instruments Ti-57LCD Ti-74BASICalc Ti-92II Ti-58c Ti-95PROCalc Ti-30XPROMathPrint | Hewlett-Packard HP-28S HP-41C HP-15C HP-Prime HP-71B | CASIO fx-602p | NUMWORKS | Graphoplex Rietz Neperlog | PockEmul | Sommaire des M.P.O. | Ma...dov'il sapone.
Jeff_Birt
Fonctionne à 75 bauds
Fonctionne à 75 bauds
Messages : 43
Enregistré le : 14 sept. 2022 20:00

Re: Interesting Sharp PC-1500 behavior

Message par Jeff_Birt »

I expect the pause after PRINT, most pocket computers to that or have a pause statement to accomplish the same thing. I did not expect it to evaluate an expression that was typed in while paused, or let you do something like 'GOTO 100' and it will jump to 100 and keep on running. You can also jump to another part of the program with a DEF key while in PRINT pause. Is this mentioned anywhere in Sharp documentation?

It has a few more quirks:

10 PRINT "Line 10"
20 END
30 PRINT "Line 30"

If while pause after line 10 you do:

CLOAD a

The BUSY annunciator will come on and it will go through the motions of loading a program. The program is memory is not overwritten and when the CLOAD a completes it will skip line 20 and continue at line 30.

This way:
10 PRINT "Line 10":END
30 PRINT "Line 30"

If you enter CLOAD a after line 10 pauses, it will actually load a new program.
Jeff_Birt
Fonctionne à 75 bauds
Fonctionne à 75 bauds
Messages : 43
Enregistré le : 14 sept. 2022 20:00

Re: Interesting Sharp PC-1500 behavior

Message par Jeff_Birt »

badaze a écrit : 07 févr. 2023 18:51 I tried with pocketEmul and I saw LINE 20.
That is because of the 'greeting' program the emulator loads automatically which has line 5 as 'WAIT 0' this disable the pause after a PRINT.
remy
Fonctionne à 2400 bauds
Fonctionne à 2400 bauds
Messages : 2218
Enregistré le : 13 mars 2006 15:39
Localisation : Issy
Contact :

Re: Interesting Sharp PC-1500 behavior

Message par remy »

Just type WAIT without value to disable the pause behavior
PockEmul, Emulateur de pocket Sharp, Canon, Casio, HP, TI, NEC, Panasonic, Sanco, Seiko, General, National, ....
sur Windows, Linux, OS X et Android
Available now on the Google Play Store and the Apple Store
Répondre

Retourner vers « Silicium in English »