res
Reset bit
Clears one bit of a register or memory byte to zero, leaving the other bits unchanged.
Used in
- 8-bit and 16-bit arithmetic, logic and bitsZ80 assembly
SZHP/VNC ––––––
- Changes no flag
Forms
-
Resets bit
bofr. -
Resets bit
bof (HL). -
Resets bit
bof the memory location pointed to by IX plusdd.
Undocumented 1 row
Left out of Zilog's manual, but the Z80 runs them, and so does this emulator.
-
Resets bit
bof the memory location pointed to by IX plusdd. The result is then stored inr.
Operands
b- A bit number from
0to7, where bit0is the least significant bit. r- An 8-bit register:
a,b,c,d,e,horl. (hl)- The byte in memory at the address stored in
hl. More (ix+dd)- The byte in memory at
ix + dd, whereddis a signed displacement from-128to127, for example(ix+5)or(ix-3).(iy+dd)works the same way. More
.org 0x8000
ld b, 3
res 0, b
halt