z80:Opcodes:SET

From Learn @ Cemetech
Jump to navigationJump to search

Sets the specified bit.

Syntax

   set n,op8

Allowed Instructions

   set n,a
   set n,b
   set n,c
   set n,d
   set n,e
   set n,h
   set n,l
   set n,(hl)
   set n,(ix+n)
   set n,(iy+n)

Effects

All flags preserved.

Uses

T-States

r denotes 8-bit register.

r 8
(hl) 15
(ix+X) 23
(iy+X) 23

See Also

AND,BIT,CCF,CPL,OR,RES,SCF,XOR