 |
INPUT/OUTPUT INSTRUCTIONS |
Back to:
IN instruction
Coding:
(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:
Coding:
(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:
|