
7-6
Section
Details of BASIC Commands
143
bitoff/biton
Syntax:
BITOFF
<integer variable> , <bit position>
BITON
<integer variable> , <bit position>
Description:
Statement. turns ON (1) or OFF (0) the specified bit of an integer variable.
<bit position> is an integer expression returning a value in the range: [0…31].
Remarks:
Note:
1.
A <bit position> of zero specifies the least significant bit.
2.
A value in the range [0…15] can be used for an integer <bit position> and a value in
the range [0…31] can be used for a long integer <bit position>.
Examples:
> 10 N% = 182
> 20 PRINT N%
> 30 BITON N%,3
> 40 PRINT N%
> 50 BITOFF N%,5
> 60 PRINT N%
> RUN
182
190
158
See also:
brkpt
Syntax:
BRKPT
[(
SET
|
DEL
)] (<line number> |
ALL
)
Description:
Command. Sets, deletes or lists breakpoints in the BASIC debugger.
Remarks:
<line number> is any valid line in the BASIC program. Valid range: [1…65535].
SET
sets a breakpoint at the specified <line number>.
DEL
deletes the breakpoint from the specified <line number>.
If the
BRKPT
command is used without
SET
or
DELETE
, it lists all the currently set breakpoints. If a
line number is specified that does not exist, then an “Undefined Line Number” error (code B008)
will occur. A maximum of 255 breakpoints can be set at any given time.
On reaching a program line that has a breakpoint set the execution will stop before executing that
line.
If
BRKPT SET ALL
is executed, a “NO SUPPORT” error will occur.
The setting of the maximum of 255 breakpoints may not be possible if there is insufficient free
space in the memory area. A breakpoint can be set while executing an interrupt program to stop
the program, but the program cannot be restarted from the location of the breakpoint.
Examples:
> BRKPT SET 200
See also:
CONT
,
STEP
,
STOP
,
END
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...