z80:Opcodes:OUT

From Learn @ Cemetech
Jump to navigationJump to search

Writes the value of the second operand into the port given by the first operand.

Syntax

   out (imm8),a
   out (c),reg8

Allowed Instructions

   out (imm8),a
   out (c),a
   out (c),b
   out (c),c
   out (c),d
   out (c),e
   out (c),h
   out (c),l
   
   out (c),0    ;Zero. Note: Undocumented

Effects

All flags preserved

Uses

T-States

r denotes 8-bit register.

A, X 11
r, (C) 12

See Also

IN,IND,INDR,INI,INIR,OUTD,OTDR,OUTI,OTIR