z80:Opcodes:RES

From Learn @ Cemetech
Jump to navigationJump to search

Resets the specified byte to zero.

Syntax

   res n,op8

Allowed Instructions

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

Effects

Flags are 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,SCF,SET,XOR