INPUT/OUTPUT INSTRUCTIONS


Back to:
index table

IN instruction

Coding:
bin: MOD1010 PRTOP2
hex: MODA PRTOP2
(MOD - modifier: affects on operands type - word/byte; PRT -
port number, OP2 - destination operand)

Description:
PRT ==> OP2
This instruction gets a value from specifid port and write the result to OP2.

Examples:
0A10 port 1 ==> R0 port 1 value will be stoped to R0

Back to:
index table top


OUT instruction

Coding:
bin: MOD1011 OP1PRT
hex: MODB OP1PRT
(MOD - modifier: affects on operands type - word/byte, or maybe specifies "short constant"; OP1 - cource operand, PRT -
port number)

Description:
OP1 ==> PRT
This instruction gets a value of OP1 and places it to specified port.

Examples:
0B03 R0 ==> port 3 R0 value will be put to port 3
08D3
0020
20 ==> port 3 this operation will put specified constant to port 3

Back to:
index table top