Schrijver
| Three questions about keyboard-input in MSX-BASIC
|
DemonSeed msx professional Berichten: 1023 | Geplaatst: 25 Juli 2007, 01:51   |
* Is there ANY way of reading [GRAPH] and/or [CTRL] input, using some corresponding ASCII-code? As in: "A"=CHR$(65), [RETURN]=CHR$(13) etc?
* If not, is there an alternative way?
* Who can tell me which DEFUSR-adress is preserved for cleaning the keyboard buffer? I forgot...
|
|
NYYRIKKI msx master Berichten: 1525 | Geplaatst: 25 Juli 2007, 08:18   |
* No, there is no ASCII code for CTRL or GRAPH. If they are used in combination with other letters they will have effect to ASCII code anyway.
* First question makes me think you are talking about BASIC. So maybe this helps:
if peek(&HFBEB)and2 then else ?"CTRL pressed"
if peek(&HFBEB)and4 then else ?"GRAPH pressed"
* DEFUSR=&H156
|
|
DemonSeed msx professional Berichten: 1023 | Geplaatst: 25 Juli 2007, 19:13   |
Great, thanks a lot!
|
|
CrazyBoss msx freak Berichten: 151 | Geplaatst: 25 Juli 2007, 21:32   |
hi i didn know there is a defusr=&H156
as a basic programmer i always used
10 if inkeys$>"" then 10
-Claus
|
|
|
|
|