Casio FX-602P series: Difference between revisions
en>Krischik m →Programming example: remove empty lines. |
en>Z. Patterson No edit summary |
||
| Line 1: | Line 1: | ||
{{ Infobox Calculator | |||
| name = CASIO FX-501P / FX-502P | |||
| image = CasioFX501P.jpg | |||
| caption = A 30 year old Casio FX-501P in working condition displaying the number <big>'''''[[Pi|π]]'''''</big> | |||
| type = [[Programmable calculator|Programmable]] [[Scientific calculator|Scientific]] | |||
| entry =[[Calculator_input_methods#Infix_notation|Infix]] | |||
| introduced = 1978 | |||
| manufacturer = [[Casio]] | |||
| display_type = [[Liquid crystal display|LCD]] [[Seven-segment display]] | |||
| precision = 12 digits mantissa, ±99 exponent | |||
| display_size = 10 + 3 Digits | |||
| prog_lang = [[Keystroke programmable|Keystroke]] <small>(fully merged, [[Turing completeness|Turing complete]])</small> | |||
| memory_data = 11 <small>(FX-501P)</small> 22 <small>(FX-502P)</small> | |||
| memory_step = 128 <small>(FX-501P)</small> 256 <small>(FX-502P)</small> | |||
| conn1 = [[Compact Cassette]] | |||
| via1_1 = [[Casio FA-1|FA-1]] | |||
| ports = one vendor specific | |||
| supply = 2×"G13" or 2x"LR44" | |||
| power = 0.0008W | |||
| weight = 141g, 5 oz | |||
| dimensions = 15.24x7,6x1.2 cm, 6"×3"×½" | |||
}} | |||
The '''FX-501P''' and '''FX-502P''' were [[programmable calculator]]s, manufactured by [[CASIO]] from 1978. They were the predecessors of the [[Casio FX-601P]] and [[Casio FX-602P]]. | |||
==Arithmetic== | |||
The FX-502P series use the [[Direct algebraic logic|algebraic logic]] as was state of the art at the time. | |||
==Display== | |||
The '''FX-501P''' and '''FX-502P''' featured a single line 7-segment liquid crystal display with 10 digits as main display. An additional 3 digits 7-segment display used to display exponents and program steps when entering or debugging programs and 10 status indicators. The display was covered with a yellow filter, supposedly to prevent ultra-violet radiation damage. | |||
==Programming== | |||
The programming model employed was key stroke programming by which each key pressed was recorded and later played back. On record multiple key presses were merged into a single programming step. All operations fitted into one program step.<ref>[http://fx-602p.krischik.com/index.php/Main/TokenCodes FX-602P Token list] - note that the FX-502P series only employed the standard plane.</ref> | |||
The '''FX-501P''' could store 128 steps, with 11 memory registers. The '''FX-502P''' had double capacity with 256 steps and 22 memory registers. | |||
Conditional and Unconditional jumps as well as subroutines where supported. The FX-502P series supported 10 labels for programs and subroutines called P0 .. P9. Each program or subroutine could have up to 10 local labels called LBL0 .. LBL9 for jumps and branches. | |||
The '''FX-501P''' and '''FX-502P''' supported indirect addressing both for memory access and jumps and therefore the programming model could be considered [[Turing completeness|Turing complete]]. | |||
Since the '''FX-501P''' and '''FX-502P''' only employed a [[Seven-segment display]] each program step was represented by a special 2 digit codes made op of the digits '''0''' .. '''9''' and the character '''C''', '''E''', '''F''' and '''P'''. The Calculator came with a special overlay<ref>[http://www.voidware.com/calcs/fx501p.htm casio fx-501p with programming overlay]</ref> so the user need not memorise the mapping between code and actual command. | |||
===Programming example=== | |||
Here is a sample program that computes the factorial of an integer number from 2 to 69. For 5!, you'll type <code>5</code> <code>P0</code> and get the result, 120. The whole program is only 9 bytes long. | |||
{| class="wikitable" | |||
|- | |||
! Key-code !! Display-code !! Comment | |||
|- | |||
| {{keypress|P0}} || P0 || You'll call the program with the P0 key | |||
|- | |||
| {{keypress|Min}}{{keypress|0}} || C6 00 || stores the value in register 0 | |||
|- | |||
| {{keypress|1}} || 01 || starts with 1 | |||
|- | |||
| {{keypress|LBL}}{{keypress|0}} || F0 00 || label for the loop | |||
|- | |||
| {{keypress|*}} || E1 || multiply | |||
|- | |||
| {{keypress|MR}}{{keypress|0}} || C7 00 || with M0 | |||
|- | |||
| {{keypress|INV}} {{keypress|DSZ}} {{keypress|GOTO}}{{keypress|0}} || FF 01 F1 00 || décrements M0 and back to LBL0 until M0=0 | |||
|- | |||
| {{keypress|1==}} || E5 || end of loop, the machine has calculated <math>1 \times n \times ( n - 1) \times \cdots \times 2 \times 1 =n!</math> | |||
|} | |||
==Interface== | |||
The FX-501P and FX-502P used the [[Casio FA-1|FA-1]] to store program and data to [[Compact Cassette]] using the [[Kansas City standard]]. The FA-1 also enabled the calculators to generate musical notes. | |||
==References== | |||
{{reflist|2}} | |||
==External links== | |||
* [http://www.rskey.org/detail.asp?manufacturer=Casio&model=fx-501P FX-501P] and [http://www.rskey.org/detail.asp?manufacturer=Casio&model=fx-502P FX-502P] on [http://www.rskey.org RS-Key] maintained by Viktor Toth. | |||
* [http://www.voidware.com/calcs/fx501p.htm casio fx-501p] and [http://www.voidware.com/calcs/fx502p.htm casio fx-502p] on [http://www.voidware.com/calcs Voidware] | |||
* [http://sim41.webcindario.com/sim502.htm FX-502p Simulator] | |||
{{Casio-calc}} | |||
{{Casio}} | |||
{{DEFAULTSORT:Casio Fx-502p Series}} | |||
[[Category:Casio calculators|FX-502P]] | |||
[[Category:Programmable calculators]] | |||
[[Category:Products introduced in 1978]] | |||
Latest revision as of 13:21, 8 December 2013
The FX-501P and FX-502P were programmable calculators, manufactured by CASIO from 1978. They were the predecessors of the Casio FX-601P and Casio FX-602P.
Arithmetic
The FX-502P series use the algebraic logic as was state of the art at the time.
Display
The FX-501P and FX-502P featured a single line 7-segment liquid crystal display with 10 digits as main display. An additional 3 digits 7-segment display used to display exponents and program steps when entering or debugging programs and 10 status indicators. The display was covered with a yellow filter, supposedly to prevent ultra-violet radiation damage.
Programming
The programming model employed was key stroke programming by which each key pressed was recorded and later played back. On record multiple key presses were merged into a single programming step. All operations fitted into one program step.[1]
The FX-501P could store 128 steps, with 11 memory registers. The FX-502P had double capacity with 256 steps and 22 memory registers.
Conditional and Unconditional jumps as well as subroutines where supported. The FX-502P series supported 10 labels for programs and subroutines called P0 .. P9. Each program or subroutine could have up to 10 local labels called LBL0 .. LBL9 for jumps and branches.
The FX-501P and FX-502P supported indirect addressing both for memory access and jumps and therefore the programming model could be considered Turing complete.
Since the FX-501P and FX-502P only employed a Seven-segment display each program step was represented by a special 2 digit codes made op of the digits 0 .. 9 and the character C, E, F and P. The Calculator came with a special overlay[2] so the user need not memorise the mapping between code and actual command.
Programming example
Here is a sample program that computes the factorial of an integer number from 2 to 69. For 5!, you'll type 5 P0 and get the result, 120. The whole program is only 9 bytes long.
| Key-code | Display-code | Comment |
|---|---|---|
| Template:Keypress | P0 | You'll call the program with the P0 key |
| Template:KeypressTemplate:Keypress | C6 00 | stores the value in register 0 |
| Template:Keypress | 01 | starts with 1 |
| Template:KeypressTemplate:Keypress | F0 00 | label for the loop |
| Template:Keypress | E1 | multiply |
| Template:KeypressTemplate:Keypress | C7 00 | with M0 |
| Template:Keypress Template:Keypress Template:KeypressTemplate:Keypress | FF 01 F1 00 | décrements M0 and back to LBL0 until M0=0 |
| Template:Keypress | E5 | end of loop, the machine has calculated |
Interface
The FX-501P and FX-502P used the FA-1 to store program and data to Compact Cassette using the Kansas City standard. The FA-1 also enabled the calculators to generate musical notes.
References
43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.
External links
- FX-501P and FX-502P on RS-Key maintained by Viktor Toth.
- casio fx-501p and casio fx-502p on Voidware
- FX-502p Simulator
Template:Casio-calc Template:Casio
- ↑ FX-602P Token list - note that the FX-502P series only employed the standard plane.
- ↑ casio fx-501p with programming overlay