Set set bit – Zilog Z80380 User Manual
Page 197
Advertising

5-163
Z380
™
U
SER
'
S
M
ANUAL
Z
ILOG
DC-8297-03
SET
SET BIT
SET b, dst
dst = R, IR, X
Operation:
dst(b)
←
1
The specified bit b within the destination operand is set to 1. The other bits in the destination
are unaffected. The bit to be set is specified by a 3-bit field in the instruction; this field
contains the binary encoding for the bit number to be set. The bit number b must be between
0 and 7.
Flags:
S:
Unaffected
Z:
Unaffected
H:
Unaffected
V:
Unaffected
N:
Unaffected
C:
Unaffected
Addressing
Execute
Mode
Syntax
Instruction Format
Time
Note
R:
SET b,R
11001011 11bbb -r-
2
IR:
SET b,(HL)
11001011 11bbb110
2+r
X:
SET b,(XY+d)
11y11101 11001011 ——d— 11bbb110
4+r
I
Field Encodings:
r:
per convention
y:
0 for IX, 1 for IY
Advertising