djnz *

Control Flow // DJNZ (Decrement reg. b and Jump if Not Zero)

0x10 - u16

Description

The b register is decremented, and if not zero, the signed value * is added to pc. The jump is measured from the start of the instruction opcode.

T States Bytes
13 2

Condition Bits Affected

None.

source
{
  "flags": {
    "S": "unaffected",
    "Z": "unaffected",
    "H": "unaffected",
    "P/V": "unaffected",
    "N": "unaffected",
    "C": "unaffected"
  },
  "unaffected": true,
  "operation": "djnz *",
  "opcode": "djnz",
  "operand": [
    "*"
  ],
  "code": "10",
  "bytes": 2,
  "time": 13,
  "description": "The b register is decremented, and if not zero, the signed value * is added to pc. The jump is measured from the start of the instruction opcode.",
  "category": "Control Flow",
  "subCategory": "DJNZ (Decrement reg. b and Jump if Not Zero)"
}