You are on page 1of 4

PUSH

The PUSH instruction increments the stack pointer and stores the value of the specified byte operand at the internal RAM address indirectly referenced by the stack pointer. No flags are affected by this instruction. See Also: POP PUSH direct C AC F0 RS1 RS0 OV 2 2 11000000 PUSH SP = SP + 1 (SP) = (direct) direct P

Bytes Cycles Encoding Operation

Example

PUSH A

POP
The POP instruction reads a byte from the address indirectly referenced by the SP register. The value read is stored at the specified address and the stack pointer is decremented. No flags are affected by this instruction. See Also: PUSH POP direct C AC F0 RS1 RS0 OV P

Bytes

Cycles

Encoding

11010000

direct

Operation

POP (direct) = (SP) SP = SP - 1

Example

POP 34h

NOP
The NOP instruction does nothing. Execution continues with the next instruction. No registers or flags are affected by this instruction. NOP is typically used to generate a delay in execution or to reserve space in code memory. NOP C AC F0 RS1 RS0 OV P

Bytes

Cycles

Encoding

00000000

Operation

PC = PC + 1

Example

NOP

You might also like