Bitshift - Monarch 9460 Programmer's Manual

Adk printer
Hide thumbs Also See for 9460:
Table of Contents

Advertisement

B I T S H I F T
Purpose
Allows bits within a value to be arithmetically shifted left or right.
Syntax

BITSHIFT

Process
The BITSHIFT command allows bits within a value to be arithmetically shifted left
or right. Shifts
Count
out of range and invalid label is defined, control passes to that label. If the
operation is successful and
RULE:
Both
Direction
Buffer-field1
Invalid
Optional Fields
Example
This example shifts the bits in TEMP1 once to the left, which has the effect of
doubling the value.
BITSHIFT LEFT, TEMP1, #1
See Also
BITCLEAR
BITMASK
BITSET
BITTEST
direction
,
buffer-field1
count
bits in
can be 1 to 16. If
buffer-field1
count
and
can be one of the following:
Direction
LEFT
RIGHT
count
and
Buffer-field1
count
and
INPUT
Logical Field Name
(TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Logical Field Name
(Field1) [Index]
Asc-field only:
Number
String
SCRATCH
valid labels
and
,
count
[ , [
buffer-field
in the direction specified by
buffer-field
contains an invalid value or the count field is
valid label
is defined, control passes to that label.
must be numeric.
Description
Shifts bits left
Shifts bits right
can be one of the following:
Description
Input Buffer
Temporary Buffer
Field
Lookup Buffer Field
Printer Buffer Field
Array Buffer Field
A number prefixed by
the number sign (#)
ASCII string delimited
by double quotes
Scratch buffer
are discussed in "Script Flow" at the beginning this chapter.
invalid label
] [ ,
valid label
Command Reference 5-17
] ]
direction
.

Advertisement

Table of Contents
loading

Table of Contents