INC

From GbdevWiki
Revision as of 09:30, 25 May 2012 by Beannaich (Talk | contribs) (Created page with 'The byte specified by the operand is incremented. == Instructions == INC B - $04 - 1 Machine Cycle INC C - $0C - 1 Machine Cycle INC D - $14 - 1 Machine Cycle INC …')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The byte specified by the operand is incremented.

Instructions

INC B    - $04 - 1 Machine Cycle
INC C    - $0C - 1 Machine Cycle
INC D    - $14 - 1 Machine Cycle
INC E    - $1C - 1 Machine Cycle
INC H    - $24 - 1 Machine Cycle
INC L    - $2C - 1 Machine Cycle
INC (HL) - $34 - 2 Machine Cycles
INC A    - $3C - 1 Machine Cycle

Flags

Z: 1 if result is zero; 0 otherwise N: 0 H: 1 if carry from bit 3; 0 otherwise C: not affected