Description
Performance index
This is the listing for calculating the performance index
I. Total number of operations is 340, so
I is 340/execution_time_in_seconds
10:FOR I=1 TO 10
20:FOR J=1 TO 10
30:X=J
40:X=X+1
50:X=X-.04567
60:X=X+70
70:X=X-69
80:X=X*7
90:X=X/11
100:NEXT J
110:X=LOG X
120:X=SIN X
130:X=SQRT X
140:X=SQRT X
150:NEXT I
160:PRINT X
And the printed result is 3.521579143E-01
PEEK & POKE
There is no mention of either PEEK or POKE in the Sharp manual, so here is a little explanation that might be helpful.
Since the PC-1403 is programmable in BASIC, PEEK and POKE can be used without a problem. The reason why Sharp has not mentioned it in their manual is unclear to me.
The implementation of the Sharp basic POKE is a little different from standard BASIC. The syntax:
POKE [address],[data 1],[data 2],...,[data n] (Normally this would be POKE [address],[data])
The difference is that on the PC-1403 you can use one POKE statement to fill multiple memory places. [address] indicates the address where [data 1] is stored. The [data 2] is stored in [address + 1] and so forth.
[address] can be a decimal or hexadecimal value. When using a hexadecimal value, prefix it with $
11 pin I/O connector
The 11-pin connector is a proprietary Sharp interface used to connect printers, cassette interfaces, and pocket floppy drives.
I have found 2 different pin-layouts on the net so far. Anyone who can tell me which is the right one?
pin name description
1 MT 2 (not used on some models)
2 Ground
3 VCC Power
4 Busy
5 Data out Data out to printer (bit by bit)
6 X out Data to the cassette recorder
7 X in Data from the cassette recorder
8 Data in Data in (bit by bit)
9 ACK Enables CPU to read data bit by bit
10 IO 2 SEL 2 output from CPU
11 IO 1 SEL 1 output from CPU
pin name description
1 nicht belegt - -
2 +6V VCC Spannungsversorgung -
3 Masse GND Masse in
4 Leitung Über F-Port: siehe Ports out
5 Leitung Über Adresse &3A00-FF: siehe Ports out
6 LOAD Wird von CLOAD benutzt, Abfrage über TEST 128 in
7 SAVE Wird von CSAVE benutzt, Steuerung über C-Port Bit 4,5 und 6 out
8 Leitung Über B-Port/Adresse &3A00-FF: siehe Ports in/out?
9 Leitung Über B-Port/Adresse &3C00-&3DFF: siehe Ports in/out
10 Leitung Über Adresse &3A00-FF: siehe Ports out
11 Leitung Über Adresse &3A00-FF: siehe Ports out
Some helpfull links
Die Mayers - Heimseite
SHARP 1403 H - Tricks
Sharp Machine Language
Sharp PC-1403 Short Manual
Sharp Pocket Computers, Printers, Cables, Level Converters & Accessories
Sharp to RS-232 Serial Converter
Simons Pocket Computer Ressourcen
FAZ's Sharp PC 1403 Universe
Documents
A
listing of all my Sharp documents.Derived from the PC-1401.
Image
Calculators on this site are
not for sale. If you are looking to buy a calculator, please visit our
eBay page.
Please note we do not offer any calculators ourselves, we mearly display what others are selling on eBay.
All rights reserved. Trademarks and brand names are respected. Information on this page is stricly for personal use. No part of it is garanteed to be correct.
This page was last modified on February 29th, 2008