Logic Operation Instructions - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

8 aSSEMBlEr

8.6.3 logic Operation instructions

Types and functions of extended instructions
Extended instruction
sand
%rd,imm16
soor
%rd,imm16
sxor
%rd,imm16
snot
%rd,imm16
xand
%rd,imm16
xoor
%rd,imm16
xxor
%rd,imm16
xnot
%rd,imm16
These extended instructions allow a 16-bit immediate to be specified directly in a logical operation.
A conditional operation option (/c, /nc) cannot be specified in the extended instructions.
Basic instructions after expansion
Expanded into the and instruction
sand, xand
Expanded into the or instruction
soor, xoor
Expanded into the xor instruction
sxor, xxor
Expanded into the not instruction
snot, xnot
Expansion format
(1) sOP
%rd,imm16 / xOP
Example: xand
%rd,imm16
imm16 ≤ 0x7f
and
%rd,imm16(6:0)
8-16
%rd ← %rd&imm16
%rd ← %rd|imm16
%rd ← %rd^imm16
%rd ← !imm16
%rd ← %rd&imm16
%rd ← %rd|imm16
%rd ← %rd^imm16
%rd ← !imm16
(OP = and, oor, xor, not)
%rd,imm16
0x7f < imm16
ext
imm16(15:7)
and
%rd,imm16(6:0)
EPSOn
function
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
Expansion
(1)
(1)
(1)
(1)
(1)
(1)
(1)
(1)
S5U1C17001C ManUal

Advertisement

Table of Contents
loading

Table of Contents