Sharp OZ-707 Operation Manual - Page 80

CKJ .

Page 80 highlights

INIT D FORMAT: 1.INIT "E:?K" !ENTER! 2. INIT HE:" ! ENTER! Abbreviation: INI. See Also: PURPOSE: Initializes the RAM disk E. REMARKS: Format 1 specifies the data file area on RAM disk E, which allocates a section of the memory in the Card to store programs and data as if they were stored in external storage. Specify the size (?) of the data file area in kilobytes. The allowable size for RAM disk E is 2 to the size of the free area. When this command is executed, the system asks if you are sure you want to delete the existing contents of the RAM disk. If yes, press CD . If no, press CKJ . When [ T I is pressed, the contents of the RAM disk file area are not affected. When the size of the current disk area is changed, its contents will be cleared. If H0 K" is specified in format 1, the command clears the file area and cancels area definition. In format 2, the current RAM disk area is initialized. INKEY$ p FORMAT: INKEY$ Abbreviation: INK. See Also: PURPOSE: Gives the specified variable the value of the key pressed while the INKEY$ function is executed. REMARKS: INKEY$ is used to respond to the pressing of individual keys without waiting for the !ENTER I key to end the entry. See the following table for a list of applicable keys and the characters that are returned. The INKEY$ command reads the ISHIFT I or ICAPS I key if it is pressed. Thus, it is unable to read the function or symbol key that is pressed following either of these keys. EXAMPLE: 5: CLS: WAIT 60 10: IF INKEY$< > •• THEN 10 15: A$=INKEY$ 20: B=ASC A$ 30: IF B=O THEN 10 40: IF B ... Lines 40 and beyond contain tests for the key and the actions to be taken (for example: 60: PRINT B). 148 149

  • 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

INIT
FORMAT:
1.INIT
"E:?K"
!ENTER!
2.
INIT
HE:"
!
ENTER!
Abbreviation:
INI.
See
Also:
PURPOSE:
Initializes the RAM disk
E.
REMARKS:
Format 1 specifies the
data
file area on RAM
disk
E,
which allocates a
section
of
the memory in the Card to store programs and data as if
they were stored in external storage.
Specify the size (?) of the data file area in kilobytes. The allowable
size
for
RAM disk E is 2 to the size of the free area.
When this command is executed, the system asks
if
you are sure you
want to delete the existing contents of the RAM disk.
If
yes, press
CD
.
If no, press
CKJ .
When
[TI
is pressed, the contents of
the
RAM
disk file area are
not
affected.
When the size of the current disk area is changed, its contents will be
cleared.
If
H0
K" is specified in format 1, the command clears the file area and
cancels area definition.
In format 2, the current RAM disk area is initialized.
148
D
INKEY$
FORMAT:
INKEY$
Abbreviation:
INK.
See
Also:
PURPOSE:
Gives the specified variable the value of the key pressed while the
INKEY$ function is executed.
REMARKS:
INKEY$ is used to respond
to
the pressing of individual keys without
waiting for the
!
ENTER
I
key to end the entry.
See the following table for a list
of
applicable keys and the characters
that are returned.
The INKEY$ command reads the
I
SHIFT
I
or
I
CAPS
I
key if it is pressed.
Thus, it is unable to read the function
or
symbol key that is pressed
following either of these keys.
EXAMPLE:
5: CLS: WAIT 60
10:
IF INKEY$<
>
••
THEN
10
15:
A$=INKEY$
20:
B=ASC A$
30:
IF
B=O
THEN
10
40:
IF
B ...
Lines 40 and beyond contain tests for the key and the actions to be taken (for example:
60: PRINT
B)
.
149
p