PEEK and POKE for CASIO

Ici, on fait dans le petit, le LCD qui déchire sa race, on y cause même calculatrices quand on est en manque !

Modérateur : Politburo

Avatar du membre
dprtl
Fonctionne à 1200 bauds
Fonctionne à 1200 bauds
Messages : 463
Enregistré le : 27 janv. 2013 00:26
Localisation : Strasbourg
Contact :

Re: PEEK and POKE for CASIO

Message par dprtl »

Marcus von Cube a écrit : Vous trouverez plus d'informations dans les docs de mes utilitaires et dans mon tableau (voir ma signature).
Excellent tableau multi-constructeurs, boulot très intéressant !

J'ai juste noté une petite erreur qui concerne la colonne FX-850P, FX-880P : les opérateurs NOT, AND, OR, XOR sont en effet présents sur ces modèles. Et bien qu'ils ne soient pas documentés de façon détaillée, ils apparaissent néanmoins dans la liste des mots réservés.
Gilles59
Fonctionne à 2400 bauds
Fonctionne à 2400 bauds
Messages : 1602
Enregistré le : 27 oct. 2010 20:46

Re: PEEK and POKE for CASIO

Message par Gilles59 »

Dommage que cela ne fonctionne pas sur la 602P ;)

je me demande si les POKE de la 603P permettent d'acceder directement à la mémoire "écran" ?
Casio FX-502P /602P / 603P / FX180P+ / FX4000P / TI57 / TI66 / TI74 Basicalc / TI95 Procalc / HP12C / HP15C LE / DM41L / HP 30B / HP39GII / HP 48SX USA / 49G / 49g+ / 50G / 50G NewRPL / HP Prime / Oric 1 / Amstrad CPC 6128+ CM14 et MM12 / Alice 32
Avatar du membre
Xerxes
Fonctionne à 300 bauds
Fonctionne à 300 bauds
Messages : 292
Enregistré le : 02 avr. 2007 13:41
Localisation : Allemagne
Contact :

Re: PEEK and POKE for CASIO

Message par Xerxes »

Gilles59 a écrit :je me demande si les POKE de la 603P permettent d'acceder directement à la mémoire "écran" ?
It's possible to POKE to the upper line and then update the content. A cylon demo:

Code : Tout sélectionner

AC
1392 Min01
1 Min02
LBL0
15 Min00
LBL1
0 POKE MR01
MR02 M+01
81 POKE MR01
";"
DSZ GOTO1
MR02 +/- Min02
GOTO0
Avatar du membre
Marcus von Cube
Fonctionne à 1200 bauds
Fonctionne à 1200 bauds
Messages : 914
Enregistré le : 20 avr. 2006 13:48
Localisation : Wehrheim, Allemagne
Contact :

Re: PEEK and POKE for CASIO

Message par Marcus von Cube »

dprtl a écrit :Excellent tableau multi-constructeurs, boulot très intéressant !

J'ai juste noté une petite erreur qui concerne la colonne FX-850P, FX-880P : les opérateurs NOT, AND, OR, XOR sont en effet présents sur ces modèles. Et bien qu'ils ne soient pas documentés de façon détaillée, ils apparaissent néanmoins dans la liste des mots réservés.
Merci, c'est corrigé.
Gilles59
Fonctionne à 2400 bauds
Fonctionne à 2400 bauds
Messages : 1602
Enregistré le : 27 oct. 2010 20:46

Re: PEEK and POKE for CASIO

Message par Gilles59 »

Xerxes a écrit :
Gilles59 a écrit :je me demande si les POKE de la 603P permettent d'acceder directement à la mémoire "écran" ?
It's possible to POKE to the upper line and then update the content. A cylon demo:

Code : Tout sélectionner

AC
1392 Min01
1 Min02
LBL0
15 Min00
LBL1
0 POKE MR01
MR02 M+01
81 POKE MR01
";"
DSZ GOTO1
MR02 +/- Min02
GOTO0
Very interesting ;)
What are 0 and 81 in your program ? Kind of ASC char ? I suppose ";" is used to 'refresh' the screen.

I must find a 603P !

POKE and PEEK command are very original (unique ?) for these kind of language... The syntax seems the same that the IND access to memory. I know you can use IND on the 502P with out of range value to do such things but it's impossible (as far I know) on the 602P.
Casio FX-502P /602P / 603P / FX180P+ / FX4000P / TI57 / TI66 / TI74 Basicalc / TI95 Procalc / HP12C / HP15C LE / DM41L / HP 30B / HP39GII / HP 48SX USA / 49G / 49g+ / 50G / 50G NewRPL / HP Prime / Oric 1 / Amstrad CPC 6128+ CM14 et MM12 / Alice 32
Avatar du membre
Xerxes
Fonctionne à 300 bauds
Fonctionne à 300 bauds
Messages : 292
Enregistré le : 02 avr. 2007 13:41
Localisation : Allemagne
Contact :

Re: PEEK and POKE for CASIO

Message par Xerxes »

Gilles59 a écrit :What are 0 and 81 in your program ? Kind of ASC char ? I suppose ";" is used to 'refresh' the screen.
Exactly.

Gilles59 a écrit :POKE and PEEK command are very original (unique ?) for these kind of language... The syntax seems the same that the IND access to memory. I know you can use IND on the 502P with out of range value to do such things but it's impossible (as far I know) on the 602P.
AFAIK the only other keystroke programmable supporting PEEK, POKE and even CALL is the TI-95.

The addressing modes on the FX-603P are:

PEEK/POKE xxxx
PEEK/POKE MRxx
PEEK/POKE IND MRxx

0-879: Var
880-2046: System
2047-8191: Program
8192-8999: -
9000-9007: I/O
9008-9979: -
9980-9998: Test
9999: Centronics output

It's not possible to PEEK/POKE outside this range.
Répondre

Retourner vers « Tous les Pockets »