Java Reference
In-Depth Information
D.5.6
Bit Instructions
Mnemonic
Operation
Operand Stack
ishl
Shift left
int
;value1;value2 ) ;result
ishr
Arithmetic shift right
int
;value1;value2 ) ;result
iushr
Logical shift right
int
;value1;value2 ) ;result
lshl
Shift left
long
;value1;value2 ) ;result
lshr
Arithmetic
shift
right
;value1;value2 ) ;result
long
lushr
Logical shift right
long
;value1;value2 ) ;result
ior
Boolean OR
int
;value1;value2 ) ;result
lor
Boolean OR
long
;value1;value2 ) ;result
iand
Boolean AND
int
;value1;value2 ) ;result
land
Boolean AND
long
;value1;value2 ) ;result
ixor
Boolean XOR
int
;value1;value2 ) ;result
lxor
Boolean XOR
long
;value1;value2 ) ;result
The above instructions can be added to the code section of a method by sending the
CLEmitter
instance the following message:
publicvoidaddNoArgInstruction(intopcode)
where
opcode
is the mnemonic of the instruction to be added.
D.5.7
Comparison Instructions
Mnemonic
Operation
Operand Stack
dcmpg
Compare
double
; result is
1 if at least one value is
NaN
;value1;value2 ) ;result
dcmpl
Compare
double
; result is
1 if at least one value is
NaN
;value1;value2 ) ;result
fcmpg
Compare
float
; result is 1
if at least one value is NaN
;value1;value2 ) ;result
fcmpl
Compare
float
; result is
1 if at least one value is
NaN
;value1;value2 ) ;result
lcmp
Compare
long
;value1;value2 ) ;result
The above instructions can be added to the code section of a method by sending the
CLEmitter
instance the following message:
publicvoidaddNoArgInstruction(intopcode)
where
opcode
is the mnemonic of the instruction to be added.
Search WWH ::
Custom Search