LIO (8 bit, load I/O)

July 11, 2026 ยท View on GitHub

Opcode

76543210Notes
00110drd = 0 and r = 0 combination invalid

Operation

Performs I/O access. If I/O ports are not supported, accesses memory instead.

if d = 0 then
    IO[Reg16[r]] <- T
else
    T <- IO[Reg16[r]]  
PC <- PC + 1

Assembler syntax examples

LIO T,(BC)
LIO (DE),T