Sharp OZ-707 Operation Manual - Page 85

KEY n ON/OFF

Page 85 highlights

KEY (n) ON/OFF P D FORMAT: 1. KEY (key number) ON 2. KEY (key number) OFF Abbreviation: KE. (n) ON/OFF See Also: ON KEY GOSUB PURPOSE: Enables/disables interrupt requested from a transparent guide key. REMARKS: Format 1 enables an interrupt from the transparent guide key with the given key number. The execution of interrupt service is started with the line specified by the ON KEY GOSUB command. The functions printed on the key panel are ignored. A number from 1 through 20 is allowed as the key number. The key on the upper left corner of the key panel has key number 1, that on the upper right corner has ky nurber 4, and that on the lower right corner has key number 20. The 2ndF key (key number 5) cannot be used for key interrupt on the OZ-707. To use all transparent guide keys for key interrupt, see the OZ-794A manual. Format 2 disables the interrupt from the key with the given key number. The key returns to its original function, printed on the key panel. This command is for one key only. Use a separate command for each key. EXAMPLE: See the example for the ON KEY GOSUB command. KEY 0 p o FORMA T: KEY 0 {"c~aracte~ string"} , stnng vanable Abbreviation: KE. See Also: PURPOSE: Sets the given character string into the key buffer. REMARKS: KEY 0 command first clears the key buffer, then sets the given character string into it. Up to 32 bytes of string data can be stored in the key buffer. Characters that cannot be entered directly from the keys can be given with the CHR$ command. EXAMPLE: 10: KEY 0, "ABC" 20: INPUT A$ 30: KEY 0, "SHARP" + CHR$ &HOD + "12345" + CHR$ &HOD 40: INPUT B$ 50: INPUT C (The string on line 30 has a length of 12 bytes. CHR$ &HOD corresponds to the IENTER I key.) 158 159

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

KEY (n) ON/OFF
FORMAT:
1.
KEY (key number) ON
2.
KEY (key number) OFF
Abbreviation:
KE. (n) ON/OFF
See
Also:
ON KEY
GOSUB
PURPOSE:
Enables/disables interrupt requested from a transparent guide key.
REMARKS:
P
D
Format
1
enables an interrupt from the transparent guide key with the
given key number. The execution of interrupt service is started with the
line specified by the
ON
KEY GOSUB command. The functions printed
on the key panel are ignored.
A number from
1
through
20
is allowed as the key number. The key on
the
upper
left corner
of
the key panel has key number
1,
that on the
upper right corner has
ky
nurber
4, and that
on
the lower right corner
has key number 20.
The
2ndF
key (key
number
5) cannot be used for
key interrupt on the OZ-707. To use all transparent guide keys for key
interrupt, see the OZ-794A manual.
Format
2
disables the interrupt from the key with the given key
number. The key returns to its original function, printed on the key
panel.
This command is for one key only. Use a separate command for each
key.
EXAMPLE:
See the example for the ON
KEY
GOSUB command.
158
KEY 0
FORMA
T:
KEY 0
{"c~aracte~
string"}
, stnng vanable
Abbreviation:
KE.
See
Also:
PURPOSE:
Sets the given character string into the key buffer.
REMARKS:
p
o
KEY 0 command first clears the key buffer, then sets the given
character string into it. Up to
32
bytes
of
string data can be stored in
the key buffer. Characters that cannot be entered directly from the keys
can be given with the
CHR$
command.
EXAMPLE:
10: KEY
0,
"ABC"
20: INPUT A$
30: KEY
0,
"SHARP"
+
CHR$
&HOD
+
"12345"
+
CHR$
&HOD
40: INPUT B$
50: INPUT C
(The string on line 30 has a length of 12 bytes. CHR$
&HOD
corresponds to the
I
ENTER
I
key.)
159