Commodore Computer C16 Uživatelský manuál Strana 9

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 14
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 8
READING THE KEYBOARD
The easiest way to read the keyboard from Basic is to use the GET or GETKEY
commands. Here is a third way: PEEK(198). The computer checks the keyboard every
60th of a second and stores a value corresponding to the key pressed at memory
location 198. The stored value is a bit pattern of the keyboard matrix, not a PET-
ASCII or screen value of the key. Below is a list of all the values. For example,
if you like to test the F1 key: IF PEEK(198)=4 THEN...
=================================================
Key Value Key Value
=================================================
Esc 52 Run/Stop No Effect
1 56 Shift Lock No Effect
2 59 a 10
3 8 s 13
4 11 d 18
5 16 f 21
6 19 g 26
7 24 h 29
8 27 j 34
9 32 k 37
Left Arrow 48 l 42
Right Arrow 51 : 45
Up Arrow 43 ; 50
Down Arrow 40 * 49
Inst/Del 0 Return 1
-------------------------------------------------
Ctrl No Effect Commodore No Effect
q 62 Left Shift No Effect
w 9 z 12
e 14 x 23
r 17 c 20
t 22 v 31
y 25 b 28
u 30 n 34
i 33 m 36
o 38 , 47
p 41 . 44
@ 7 / 55
+ 54 Right Shift No Effect
- 46 £ 2
Clear/Home 57 = 53
-------------------------------------------------
F1 4 Space 60
F2 5 No key 64
F3 6
Help 3
-------------------------------------------------
LIMITING THE BASIC MEMORY
LET'S START WITH THE END
Basic programs use the free memory while running. If you have stored your own
machine language programs into the memory or your own character set, you have to
inform Basic not to use that area of memory, or otherwise Basic will overwrite
your machine language programs or your character set with temporary data.
To protect your machine language programs and/or your custom character set, the
easiest way is to place them at the end of the memory and to inform Basic that the
memory available for Basic ends right before your machine language programs and/or
custom character set begins.
The highest address of Basic memory can be read and set through memory
locations 55 and 56. Location 55 contains the lower 8 bits of the address and 56
the upper 8 bits.
To read the current "Top of Basic memory" (=end position), type the following line
in Basic and press Return:
PRINT PEEK(55) + PEEK(56) * 256
To protect your machine language programs and/or custom character set, follow
9
Zobrazit stránku 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14

Komentáře k této Příručce

Žádné komentáře

Philips InStyle manuali

Manuali dei proprietari e guide per l'utente per Lampade da muro Philips InStyle.
We fornisce 3 manuali pdf Philips InStyle per scaricare gratuitamente in base al tipo di documento: Manuale Utente






Più prodotti e manuali per Lampade da muro Philips

Modelli Tipo di Documento
372573116 Manuale Utente Philips 372573116 User manual, 8 pagine
Ecomoods Manuale Utente     Philips Ecomoods Spot light 57940/31/16, 35 pagine
Ledino Manuale Utente       Philips Ledino Wall light 69087/87/16, 25 pagine
Ledino Manuale Utente     Philips Ledino Wall light 16807/87/16, 38 pagine
Ecomoods Manuale Utente     Philips Ecomoods Spot light 57940/17/16, 35 pagine
717514026 Specifiche    Philips 6911355PH Specificație, 2 pagine
myHomeOffice Manuale Utente       Philips myHomeOffice Wall light 69064/87/16, 25 pagine
myLiving Manuale Utente Philips myLiving Spot light 56480/31/16, 8 pagine
34058/11/16 Specifiche      Philips myBathroom Wall light 34108/11/16, 34 pagine
myGarden Manuale Utente   Philips myGarden Wall light 17130/87/16, 4 pagine
33099/17/16 Wall light Manuale Utente   Philips Ecomoods Wall light 33099/31/16, 8 pagine
Ledino Manuale Utente   Philips Ledino Wall light 33257/48/16, 8 pagine
Ledino Manuale Utente   Philips Ledino Spot light 56430/31/16, 8 pagine
Ledino Manuale Utente     Philips Ledino Wall light 16810/93/16, 38 pagine
Ledino Manuale Utente   Philips Ledino Spot light 53160/48/16, 8 pagine
myLiving Manuale Utente   Philips myLiving Spot light 56330/30/16, 4 pagine
Ledino Manuale Utente       Philips Ledino Wall light 57917/48/16, 25 pagine
Ledino Manuale Utente       Philips Ledino Wall light 69069/31/16, 25 pagine
579624816 Specifiche     Philips 579633116 Specificație, 4 pagine
Ledino Manuale Utente Philips Ledino Spot light 56460/48/16, 8 pagine