z80:Opcodes:SET

From Learn @ Cemetech
Revision as of 22:37, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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