Index | wersja polska |
Even if the Elektronika MK-85 very closely resembles the Casio FX-700P, there exist significant differences between them. Following information is meant as an addendum to the Casio manual for non-Russian MK-85 users, and should help to port programs between both models.
SAVE, SAVE A, LOAD, LIST A, GET, PUT, VER
In the FX-700P the operator SET specifies the number of displayed digits before and after the decimal point. Examples:
SET E n - number of integer positions in range 0 to 8, value of 0 specifies 8 positions SET F n - number of fractional positions in range 0 to 9 SET N - restores the default display format
Examples:
SET E4 100/6 - displays 1.667E01 SET F2 123/7 - displays 17.57 SET N 1/3 - displays 0.3333333333
In the MK-85 the operator SET specifies the total number of displayed positions (in range 1 to 10). Unlike the FX-700P where the number must be specified as a single digit, the MK-85 also accepts an expression. The option SET N works similarly as in the FX-700P, but is not documented. Examples:
SET 4 10/3 - displays 3.333 100/3 - displays 33.33 SET 10 - releases the limits, recommended method SET N - releases the limits, undocumented method 10/3 - displays 3.3333333333
The operand of the CSR operator specifies the location where the following data is to be displayed. It can be specified either as a constant or a numerical expression. The fraction part is ignored, the integer part should be in range 0 to 11.
In the FX-700P the CSR operator follows the PRINT statement. Example:
10 PRINT CSR 2;"ABC" displays: [ | |A|B|C| | | | | | | ]
In the MK-85 the CSR operator is used before the PRINT statement. Options:
CSR n - previous information on the display remains unchanged CSR , - the right part of the display starting from the current position is cleared, then data is displayed at this position CSR n , - the right part of the display starting from the specified position is cleared, then data is displayed at this position CSR , n - the left part of the display up to the specified position is cleared, then data is displayed at this position
Examples:
10 PRINT "012345678901"; displays: [0|1|2|3|4|5|6|7|8|9|0|1] 20 CSR 2: PRINT "ABC"; displays: [0|1|A|B|C|5|6|7|8|9|0|1] 30 CSR ,: PRINT "XYZ" displays: [0|1|A|B|C|X|Y|Z| | | | ] 30 CSR 7,: PRINT "XYZ" displays: [0|1|A|B|C|5|6|X|Y|Z| | ] 30 CSR ,7: PRINT "XYZ" displays: [ | | | | | | |X|Y|Z|0|1]
Example usage of an exponential function on the FX-700P, taken from the manual:
10 E=EXP 1 20 INPUT A,B 30 C=(A+E^1.5)/B 40 PRINT C 50 GOTO 20
The MK-85 doesn't require such workarounds, thus the program can be simpler:
20 INPUT A,B 30 C=(A+EXP 1.5)/B 40 PRINT C 50 GOTO 20
CHR n - returns a character of specified code
CHR 65 - displays A
ASCI "character" - returns the code of specified character
ASCI "A" - displays 65
GETC string, n - extracts a single character from a string or a string variable
A$ = "ABCDEF" GETC (A$,3) - displays the character "C"
LETC "*******" - defines an user defined character of code 96, asterisks denote bitmap codes from the table below:
00000 0 01000 8 10000 G 11000 O 00001 1 01001 9 10001 H 11001 P 00010 2 01010 A 10010 I 11010 Q 00011 3 01011 B 10011 J 11011 R 00100 4 01100 C 10100 K 11100 S 00101 5 01101 D 10101 L 11101 T 00110 6 01110 E 10110 M 11110 U 00111 7 01111 F 10111 N 11111 V LETC "LALALAL" - defines a checkboard pattern CHR 96 - displays the defined character
This function cannot be used in a subroutine due to a bug.
DRAW x, y - plots a dot at screen coordinates x (in range 0 to 59) and y (in range 0 to 6), the pixel in the lower-left corner has coordinates 0,0
10 FOR X=0 TO 59 STEP 2 20 DRAW X, SIN(X*18)*3+3.5 30 NEXT X
DRAWC x, y - similar to DRAW except that it clears the pixel
AUTO line_number_interval - automatically supplies line numbers when typing in a new program
TEST - performs a test of the ROM, RAM and display, all programs and data will be erased
WHO - displays information about the author of the firmware (undocumented)
FX-700P | MK-85 or MK-85M | |
---|---|---|
Number of program steps | 1568 | 1221 or 5317 |
Number of variables | 26 up to 222 | 26 up to 178 or 690 |
Range of displayed numbers | ±1*10-99 to ±9.999999999*1099 | ±1*10-4095 to ±9.999999999*104094 |
Operand ranges for the functions | ||
sin x, cos x, tan x | |x| < 1440° (8π rad, 1600 gra) | limited only by the representation of numbers |
arcsin x, arccos x | |x| ≤ 1 | |x| ≤ 1 |
arctan x | not specified | |x| < 104094 |
log x, ln x | x > 0 | 0 < x < 104094 |
ex | x = 1 (note 1) | -9429 ≤ x ≤ +9429 |
square root | x ≥ 0 | 0 ≤ x ≤ 104094 |
xy | x > 0 (note 2) | |x| < 104094 if x < 0 then y must be an integer |
The key sequence [MODE][.] toggles between the normal and extended keyboard mode.