Skip to content
STIMSMITH

ADD Instruction

Concept

ADD is a generic arithmetic instruction found across many instruction set architectures that performs addition between two operands. In the GameBoy processor exercise context, ADD H refers to adding the contents of register H to the accumulator A, storing the result back in A, and updating the flags (Zero, Subtract cleared, Half Carry, Carry) according to defined conditions. ADD is part of the broader ALU Instruction family.

First seen 6/20/2026
Last seen 6/20/2026
Evidence 1 chunks
Wiki v1

WIKI

Definition

The ADD Instruction is an arithmetic instruction that adds two operands together. It is a fundamental instruction belonging to the broader category of ALU Instructions, which perform arithmetic and logical operations in a processor's arithmetic logic unit.

GameBoy Example: ADC H

READ FULL ARTICLE →

NEIGHBORHOOD

No graph connections found for this entity yet. It may appear in future ingestion runs.

explore full graph →

RELATIONSHIPS

2 connections
executeALUInstruction ← uses 90% 1e
The exercise asks to complete executeALUInstruction so it also handles the ADD H instruction.
ALU Instruction part of → 95% 1e
The ADD instruction is one specific ALU instruction to be implemented in the model.

CITATIONS

4 sources
4 citations — click to collapse
[1] ADD is an arithmetic instruction that adds two operands and belongs to the ALU instruction family. GameBoy processor — ADD/ADC example and executeALUInstruction exercise
[2] In the GameBoy context, the ADC H instruction adds register H to register A and updates Z, N, H, and C flags according to defined conditions. GameBoy processor — ADD/ADC example and executeALUInstruction exercise
[3] Running the ADD instruction repeatedly causes a carry from the lower nibble to the higher nibble (e.g., 0x0F -> 0x14), which is reflected in flag F at bit index 1. GameBoy processor — ADD/ADC example and executeALUInstruction exercise
[4] The exercise requires implementing executeALUInstruction so that ADD H computes A = H + A, clears F(2), sets F(3) when result is 0x00, sets F(1) on lower-to-higher nibble carry, and sets F(0) on overflow. GameBoy processor — ADD/ADC example and executeALUInstruction exercise