Tableau de comparaison des mots clefs en BASIC
Modérateur : Politburo
- charognard
- Fonctionne à 9600 bauds

- Messages : 4411
- Inscription : 06 juin 2007 19:28
- Localisation : Indre et loire
- Contact :
- charognard
- Fonctionne à 9600 bauds

- Messages : 4411
- Inscription : 06 juin 2007 19:28
- Localisation : Indre et loire
- Contact :
- Marcus von Cube
- Fonctionne à 1200 bauds

- Messages : 914
- Inscription : 20 avr. 2006 13:48
- Localisation : Wehrheim, Allemagne
- Contact :
MID$ exemple:
HP-71
A$="1234567890"
A$[5,1]="-----"
PRINT A$ : "1234-----67890"
GW-BASIC sur PC
A$="1234567890"
MID$(A$5,1)="-----"
PRINT A$ : "1234-67890"
En GW-BASIC, MID$ ne peut pas changer la longueur du chaîne.
Autre chose:
Je cherche l'instruction de FX-730P/FX-795P correspondant à VALF() du FX-850P.
HP-71
A$="1234567890"
A$[5,1]="-----"
PRINT A$ : "1234-----67890"
GW-BASIC sur PC
A$="1234567890"
MID$(A$5,1)="-----"
PRINT A$ : "1234-67890"
En GW-BASIC, MID$ ne peut pas changer la longueur du chaîne.
Autre chose:
Je cherche l'instruction de FX-730P/FX-795P correspondant à VALF() du FX-850P.
Marcus von Cube
Wehrheim, Allemagne
http://www.mvcsys.de
CASsette IO utilities
BASIC comparison sheet
WP 34S
Wehrheim, Allemagne
http://www.mvcsys.de
CASsette IO utilities
BASIC comparison sheet
WP 34S
-
jmplinux
- Fonctionne à 2400 bauds

- Messages : 1286
- Inscription : 15 oct. 2006 23:11
- Localisation : Dans le Jurassique, au fond à gauche
Dans le manuel du 795P, je n'ai pas trouvé d'équivalence pour la fonction VALF()Marcus von Cube a écrit : Je cherche l'instruction de FX-730P/FX-795P correspondant à VALF() du FX-850P.
Recherche active :
Dispos : Casio PB-700, CC-40
Don : Ti LCD Programmer (j'ai acheté ça 25€ et franchement ... je n'arrive même pas à ouvrir une huitre avec)
PC3000 en cours de réparation(jxano)
Dispos : Casio PB-700, CC-40
Don : Ti LCD Programmer (j'ai acheté ça 25€ et franchement ... je n'arrive même pas à ouvrir une huitre avec)
PC3000 en cours de réparation(jxano)
-
jmplinux
- Fonctionne à 2400 bauds

- Messages : 1286
- Inscription : 15 oct. 2006 23:11
- Localisation : Dans le Jurassique, au fond à gauche
La commande MODE x permet de positionner le mode DEG, RAD, GRAD, PRT, ..
VALF() permet d'évaluer une expression, donc pas tout à fait la même chose.
VALF() permet d'évaluer une expression, donc pas tout à fait la même chose.
Recherche active :
Dispos : Casio PB-700, CC-40
Don : Ti LCD Programmer (j'ai acheté ça 25€ et franchement ... je n'arrive même pas à ouvrir une huitre avec)
PC3000 en cours de réparation(jxano)
Dispos : Casio PB-700, CC-40
Don : Ti LCD Programmer (j'ai acheté ça 25€ et franchement ... je n'arrive même pas à ouvrir une huitre avec)
PC3000 en cours de réparation(jxano)
- Marcus von Cube
- Fonctionne à 1200 bauds

- Messages : 914
- Inscription : 20 avr. 2006 13:48
- Localisation : Wehrheim, Allemagne
- Contact :
Sera-t-il possible d'analyser le logiciel préprogrammé d'un FX-795P ? Peut-on faire une liste?
Marcus von Cube
Wehrheim, Allemagne
http://www.mvcsys.de
CASsette IO utilities
BASIC comparison sheet
WP 34S
Wehrheim, Allemagne
http://www.mvcsys.de
CASsette IO utilities
BASIC comparison sheet
WP 34S
-
jxano
- Fonctionne à 2400 bauds

- Messages : 2368
- Inscription : 17 févr. 2008 00:34
- Localisation : Paris 20ème
Non, le numéro est à deux chiffres...jmplinux a écrit :La commande MODE x permet de positionner le mode DEG, RAD, GRAD, PRT, ..
Dans les Casio FX-850/880P, ces instructions servent pour des opérations internes, comme MODE33() pour copier des portions de mémoire d'un endroit à un autre... Mais chr!x et alain_b (du groupe oisac) seront plus qualifiés que moi pour vous renseigner.
Programmeur abscons.
- Xerxes
- Fonctionne à 300 bauds

- Messages : 291
- Inscription : 02 avr. 2007 13:41
- Localisation : Allemagne
- Contact :
The equivalent command to valf() on the FX-795P is MODE20.Marcus von Cube a écrit :Je cherche l'instruction de FX-730P/FX-795P correspondant à VALF() du FX-850P.
An example:
Code : Tout sélectionner
10 $="1+1"
20 MODE 20,A
30 PRINT Athe FX-795P is the only 4-bit Casio pocket with built-in math library.
- Marcus von Cube
- Fonctionne à 1200 bauds

- Messages : 914
- Inscription : 20 avr. 2006 13:48
- Localisation : Wehrheim, Allemagne
- Contact :
Mis à jour
J'ai ajouté statistiques, PEEK/POKE, horloge, ...
Merci à Xerxes.
Merci à Xerxes.
Marcus von Cube
Wehrheim, Allemagne
http://www.mvcsys.de
CASsette IO utilities
BASIC comparison sheet
WP 34S
Wehrheim, Allemagne
http://www.mvcsys.de
CASsette IO utilities
BASIC comparison sheet
WP 34S
-
jmplinux
- Fonctionne à 2400 bauds

- Messages : 1286
- Inscription : 15 oct. 2006 23:11
- Localisation : Dans le Jurassique, au fond à gauche
J'ai appris quelque chose làjxano a écrit :Non, le numéro est à deux chiffres...jmplinux a écrit :La commande MODE x permet de positionner le mode DEG, RAD, GRAD, PRT, ..
Dans les Casio FX-850/880P, ces instructions servent pour des opérations internes, comme MODE33() pour copier des portions de mémoire d'un endroit à un autre... Mais chr!x et alain_b (du groupe oisac) seront plus qualifiés que moi pour vous renseigner.
Et ce n'est pas dans le manuel
Merci
Recherche active :
Dispos : Casio PB-700, CC-40
Don : Ti LCD Programmer (j'ai acheté ça 25€ et franchement ... je n'arrive même pas à ouvrir une huitre avec)
PC3000 en cours de réparation(jxano)
Dispos : Casio PB-700, CC-40
Don : Ti LCD Programmer (j'ai acheté ça 25€ et franchement ... je n'arrive même pas à ouvrir une huitre avec)
PC3000 en cours de réparation(jxano)
- C.Ret
- Fonctionne à 9600 bauds

- Messages : 2483
- Inscription : 31 mai 2008 23:43
- Localisation : N 49°22 E 6°10
Récapitulatif pour SHARp PC-1211
Très bonne idée ce tableau récapitulatif.
Je me permets de participer modestement en complétant la colone pour une SHARP PC-1211 (qui en fait est assez proche d'un PC-1248
Progs Vars Mem:
Syntax specifics:
Spaces are insignificant.
All keywords and variables are in uppercase letter (no lower case available)
One spare space automaticaly added after each keyword.
Abbreviations
Keywords can be abbreviated with a dot "."
Line numbers
1-999
Line lenght
81 (each keywork count as only one position)
Comments
REM, rest of line is ignored
Program areas
Single program, labels allow direct acces in DEF mode using RESERVABLE KEYS (the last two low rows of the 18 Qwerty keyboard): A S D F G H J K L [ = ] Z X C V B N L M [SPC]
Internal File System
No file system
But in RUN and PRO modes, RESERVABLE KEYS allow user customizable code and keyword sequence insertion. Programing of RESERVABLE KEY is made in RESEVE mode.
User RESERVABLE KEYS sequences may be save/load on/from tape using CSAVE/CLOAD or clear from memory using NEW command in Reserve Mode.
Reserve mode is quite the simplest expression of futher File System.
Edit Programs
PRO(GRAM) mode must be selected by MODE KEY, LIST displays lines for editing.
AUTO, DELETE, RENUM
n/a
Kill Program(s)
NEW deletes currently loaded program in PRO mode.
NEW deletes Reservable Keys (rudimentary Internal File System) in RESERVE mode.
Show Memory
MEM returns free memory
No File system.
Memory allocation
Base allocation:
What ever program size, variable A to Z (respectively A(1) to A(26) always present.
Flexible allocation:
1424 program steps share with extanded variable A(n) n from 27 to 204 (PC-1211)
[ Only 400 program steps for PC-1210 resulting in flexible variable from n=27 to 76 ]
Allocation of A(n) n>26 depending of program size.
One variable allocation is lost every 8 steps of program.
Show variable allocation
n/a
Variables
Fixed variable A-Z.
Numeric range
Variables: 10 digits, 2 digits exponent.
Internal register : 12 digits, max. 10 digits displayed.
Special symbol |E for the exponent.
Internal representation of PI is 3.14159265359|E+00
String variables
Fixed string variables A$ to Z$, 7 characters, share memory with A-Z
Flexible string variables A$(27) to A$(204), 7 characters, share memory with A(27) to A(204) and program's steps.
String too long
Silent truncation
String literals
"STRING", "STRING
Caracter set
ASCII + symbols
Lower Case
NO
Arrays
No DIM array facility.
Array have to be construct by using the variable A(n) adressing where n have to be in the interval 1 to max number of variables, depending of program step size.
An out of range n value results in error code 4....
A fractinal n value are round to lower interger value; A(2.523) is equivalent to A(2) or variable B.
String Arrays
String array have to be construct from variable A$(n) as numeric variables.
Array dimensions
No DIM command.
Automatic DIM
A(1) to A(26) adress variables A to Z when containing the proper data type (numeric or string). Addressing higher index value A(n) depend of program step size.
Missmatching variable data type in an expression results in a syntax error 1:.....
Clear variable
CLEAR resets all variables to numeric zero value.
Functions:
Syntax remarks
Parentheses around arguments of any function are optional.
Concatenation
SHARP PC-1211 lacks any string function or command.
No concatenation of string is possible. (Except using PRINT in program)
Substrings
SHARP PC-1211 lacks any string function or command.
No substring function or command.
Length
SHARP PC-1211 lacks any string function or command.
No length function.
ASCII tyo String
SHARP PC-1211 lacks any string function or command.
No data type conversion function nor command.
Number to string
SHARP PC-1211 lacks any string function or command.
No data type conversion function nor command.
Expression evaluation
n/a
Search substring
No data type conversion function nor command.
Case Conversion
No. No lower case.
Repeat String
No data type conversion function nor command.
Implied multiplication AB=A*B
YES.
This is a specific caracteristic of the really first SHARP PC which was permit due to the simplest rule of naming variables. Further SHARP calculators which allows more sophisticated variable naming have lost this feature.
Power X^Y
X^ Y
Integer division
INT (A/B)
Modulo
A-B*INT (A/B) alternatively A-BINT (A/B) using implied multiplication.
Remainder
SGN A*(ABS A-ABS B*INT ABS (A/B))
Reduction
n/a
Percentage
AP/|E2 alternatively A*P/100 but former implied version spare 2 steps)
Comparisons
<, <=, >, >=, <> (for numeric value only, no support for strings).
Binary avaluation
1=1 returns 1.
1=2 returns 0.
Logical operators
No AND, OR, NOT.
Multiplication is used for logical AND : IF (A=1)*(B=3) THEN ... - alternatively in program, nested test may spare step : IF A=1 IF B=3 THEN ...
Addition is used for logical OR : IF (A=1)+(B=3) THEN ...
Number of bits
n/a
[Priority of NOT[/u]
n/a
Absolute Value
ABS X
Sign
SGN X
Integer part(*)
SGN X*INT ABS X
Fractional part(*)
SGN X*(ABS X-INT ABS X)
Largest interger below or egal
INT X
Smallest integer above or equal(*)
-INT -X
Round to d decimal
No direct function.
With D store as a variable : INT (X*10^D+.5)/10^D
Alternatively as d constant: D=1|E-d, DINT (X/D+.5)
or INT (X*|Ed+.5)/|Ed where |E stand for specific exponent caracter.
Display only using PRINT USING syntax : PRINT USING "###.##";X
PI
Constant dedicated symbol , value 3.14159265359|E+00
Other constant
n/a
Maximum
n/a
Minimum
n/a
HEX format to integer
n/a
HEX display
n/a(*)
Deg/Min/Sec to decimal
DEG dd.mmss
dd/mmss value are formated as a single number
Number to Deg/Min/Sec
DMS dd.dddddd returns a number formatted as ddd.mmss
Degree to radian
n/a(*)
Radian to Degree
n/a(*)
Rectangular to polar
n/a(*)
Decimal logarithm
LOG X
Natural logarithm
LN X
More accurate logarithm x-1
n/A(*)
Decimal antilogarithm
10^X (alternatively if x is a constant |Ex).
Natural antilogarithm
EXP X
More accurate exponential
n/a(*)
Exponent part of number
n/a(*)
Square root
\/_X (special symbol only no SQRT function) where X >= 0
Any negative X lead to error code 1:.... (no complex suport !).
Cube root
X^(1/3), X >=0
Square X
X*X, alternatively XX (implied multiplication spare one step).
Cube
X^3, when X>=0
XXX implied notation allow negative X as well as positive or null.
Trigonometric
SIN x, COS x, TAN x where x is expressed in degree, radian or grad consistantly with current trigonometric mode.
Inverse trigonometric function
ASN x, ACS x, ATN x where -1 <= x <= +1
sec, cosec, cotan
n/a(*)
Hyperbolic trigonometric functions
n/a(*)
Angle mode selection
DEGREE, RADIAN, GRAD
Factorial and combinaison functions
n/a(*)
Random number generator
n/a(*)
Stat mode
No stat mode(*).
Time functions
n/a(*)
Read/Write memory or machine language
n/a(*)
Except the famous 'sesame bug', which allow to display as speudo hexadecimal code parts of RAM.
(*) A lot of user's functions (as well as missing function from these table) may be programmed and used interactively in DEF mode during direct calculation using RESERVABLE KEY labels and AREAD command for inputing current result (or subresult) from the display.
Reciproquely, any displayed result may be used to start a new calculation (directly by key strokes or by running a program using DEF mode).
These feature is share with all the other SHARP PC calculators.
Je me permets de participer modestement en complétant la colone pour une SHARP PC-1211 (qui en fait est assez proche d'un PC-1248
Progs Vars Mem:
Syntax specifics:
Spaces are insignificant.
All keywords and variables are in uppercase letter (no lower case available)
One spare space automaticaly added after each keyword.
Abbreviations
Keywords can be abbreviated with a dot "."
Line numbers
1-999
Line lenght
81 (each keywork count as only one position)
Comments
REM, rest of line is ignored
Program areas
Single program, labels allow direct acces in DEF mode using RESERVABLE KEYS (the last two low rows of the 18 Qwerty keyboard): A S D F G H J K L [ = ] Z X C V B N L M [SPC]
Internal File System
No file system
But in RUN and PRO modes, RESERVABLE KEYS allow user customizable code and keyword sequence insertion. Programing of RESERVABLE KEY is made in RESEVE mode.
User RESERVABLE KEYS sequences may be save/load on/from tape using CSAVE/CLOAD or clear from memory using NEW command in Reserve Mode.
Reserve mode is quite the simplest expression of futher File System.
Edit Programs
PRO(GRAM) mode must be selected by MODE KEY, LIST displays lines for editing.
AUTO, DELETE, RENUM
n/a
Kill Program(s)
NEW deletes currently loaded program in PRO mode.
NEW deletes Reservable Keys (rudimentary Internal File System) in RESERVE mode.
Show Memory
MEM returns free memory
No File system.
Memory allocation
Base allocation:
What ever program size, variable A to Z (respectively A(1) to A(26) always present.
Flexible allocation:
1424 program steps share with extanded variable A(n) n from 27 to 204 (PC-1211)
[ Only 400 program steps for PC-1210 resulting in flexible variable from n=27 to 76 ]
Allocation of A(n) n>26 depending of program size.
One variable allocation is lost every 8 steps of program.
Show variable allocation
n/a
Variables
Fixed variable A-Z.
Numeric range
Variables: 10 digits, 2 digits exponent.
Internal register : 12 digits, max. 10 digits displayed.
Special symbol |E for the exponent.
Internal representation of PI is 3.14159265359|E+00
String variables
Fixed string variables A$ to Z$, 7 characters, share memory with A-Z
Flexible string variables A$(27) to A$(204), 7 characters, share memory with A(27) to A(204) and program's steps.
String too long
Silent truncation
String literals
"STRING", "STRING
Caracter set
ASCII + symbols
Lower Case
NO
Arrays
No DIM array facility.
Array have to be construct by using the variable A(n) adressing where n have to be in the interval 1 to max number of variables, depending of program step size.
An out of range n value results in error code 4....
A fractinal n value are round to lower interger value; A(2.523) is equivalent to A(2) or variable B.
String Arrays
String array have to be construct from variable A$(n) as numeric variables.
Array dimensions
No DIM command.
Automatic DIM
A(1) to A(26) adress variables A to Z when containing the proper data type (numeric or string). Addressing higher index value A(n) depend of program step size.
Missmatching variable data type in an expression results in a syntax error 1:.....
Clear variable
CLEAR resets all variables to numeric zero value.
Functions:
Syntax remarks
Parentheses around arguments of any function are optional.
Concatenation
SHARP PC-1211 lacks any string function or command.
No concatenation of string is possible. (Except using PRINT in program)
Substrings
SHARP PC-1211 lacks any string function or command.
No substring function or command.
Length
SHARP PC-1211 lacks any string function or command.
No length function.
ASCII tyo String
SHARP PC-1211 lacks any string function or command.
No data type conversion function nor command.
Number to string
SHARP PC-1211 lacks any string function or command.
No data type conversion function nor command.
Expression evaluation
n/a
Search substring
No data type conversion function nor command.
Case Conversion
No. No lower case.
Repeat String
No data type conversion function nor command.
Implied multiplication AB=A*B
YES.
This is a specific caracteristic of the really first SHARP PC which was permit due to the simplest rule of naming variables. Further SHARP calculators which allows more sophisticated variable naming have lost this feature.
Power X^Y
X^ Y
Integer division
INT (A/B)
Modulo
A-B*INT (A/B) alternatively A-BINT (A/B) using implied multiplication.
Remainder
SGN A*(ABS A-ABS B*INT ABS (A/B))
Reduction
n/a
Percentage
AP/|E2 alternatively A*P/100 but former implied version spare 2 steps)
Comparisons
<, <=, >, >=, <> (for numeric value only, no support for strings).
Binary avaluation
1=1 returns 1.
1=2 returns 0.
Logical operators
No AND, OR, NOT.
Multiplication is used for logical AND : IF (A=1)*(B=3) THEN ... - alternatively in program, nested test may spare step : IF A=1 IF B=3 THEN ...
Addition is used for logical OR : IF (A=1)+(B=3) THEN ...
Number of bits
n/a
[Priority of NOT[/u]
n/a
Absolute Value
ABS X
Sign
SGN X
Integer part(*)
SGN X*INT ABS X
Fractional part(*)
SGN X*(ABS X-INT ABS X)
Largest interger below or egal
INT X
Smallest integer above or equal(*)
-INT -X
Round to d decimal
No direct function.
With D store as a variable : INT (X*10^D+.5)/10^D
Alternatively as d constant: D=1|E-d, DINT (X/D+.5)
or INT (X*|Ed+.5)/|Ed where |E stand for specific exponent caracter.
Display only using PRINT USING syntax : PRINT USING "###.##";X
PI
Constant dedicated symbol , value 3.14159265359|E+00
Other constant
n/a
Maximum
n/a
Minimum
n/a
HEX format to integer
n/a
HEX display
n/a(*)
Deg/Min/Sec to decimal
DEG dd.mmss
dd/mmss value are formated as a single number
Number to Deg/Min/Sec
DMS dd.dddddd returns a number formatted as ddd.mmss
Degree to radian
n/a(*)
Radian to Degree
n/a(*)
Rectangular to polar
n/a(*)
Decimal logarithm
LOG X
Natural logarithm
LN X
More accurate logarithm x-1
n/A(*)
Decimal antilogarithm
10^X (alternatively if x is a constant |Ex).
Natural antilogarithm
EXP X
More accurate exponential
n/a(*)
Exponent part of number
n/a(*)
Square root
\/_X (special symbol only no SQRT function) where X >= 0
Any negative X lead to error code 1:.... (no complex suport !).
Cube root
X^(1/3), X >=0
Square X
X*X, alternatively XX (implied multiplication spare one step).
Cube
X^3, when X>=0
XXX implied notation allow negative X as well as positive or null.
Trigonometric
SIN x, COS x, TAN x where x is expressed in degree, radian or grad consistantly with current trigonometric mode.
Inverse trigonometric function
ASN x, ACS x, ATN x where -1 <= x <= +1
sec, cosec, cotan
n/a(*)
Hyperbolic trigonometric functions
n/a(*)
Angle mode selection
DEGREE, RADIAN, GRAD
Factorial and combinaison functions
n/a(*)
Random number generator
n/a(*)
Stat mode
No stat mode(*).
Time functions
n/a(*)
Read/Write memory or machine language
n/a(*)
Except the famous 'sesame bug', which allow to display as speudo hexadecimal code parts of RAM.
(*) A lot of user's functions (as well as missing function from these table) may be programmed and used interactively in DEF mode during direct calculation using RESERVABLE KEY labels and AREAD command for inputing current result (or subresult) from the display.
Reciproquely, any displayed result may be used to start a new calculation (directly by key strokes or by running a program using DEF mode).
These feature is share with all the other SHARP PC calculators.
SHARP PC-1211 + CE-121 + CE-122. | VIC 20 Commodore 128D + Printer P-803 + SD2iec. | TI-57 LCD | HP-28S + HP82240A | TI-74 BasiCalc | HP-41C + (2 memory + stat + IR) | HP-15C | HP Prime Color Touchscreen Graphing Calculator| TI-92 II | CASIO fx-602p + FA-1 | HP-71B 64K+JPC-ROM+HPIL+card reader . Sommaire des M.P.O..






