IAI America SSEL User Manual
Page 154
132
Part 2 Programs
(4) Operand 1 = 3
Data is read or written after its upper 16 bits and lower 16 bits are reversed every 32
bits and its upper eight bits and lower eight bits are reversed every 16 bits.
(I/O, flag number upper)
(I/O, flag number lower)
01234567h
67h 45h 23h 01h 0110 0111 0100 0101 0010 0011 0000 0001
Variable 99
I/O port, flag status (0 = OFF, 1 = ON)
Temporary data
OUT(B) command
IN(B) command
[Example 1]
Variable 99 = 00123456h (Decimal: 1193046, BCD: 123456)
00123456h
Variable 99 1193046 (IN/OUT command)
123456 (INB/OUTB command)
(I/O, flag number upper) (I/O, flag number lower)
FMIO = 0 00h 12h 34h 56h
0000 0000
0001 0010 0011 0100 0101 0110
FMIO = 1 12h 00h 56h 34h
0001 0010
0000 0000 0101 0110 0011 0100
FMIO = 2 34h 56h 00h 12h
0011 0100
0101 0110 0000 0000 0001 0010
FMIO = 3 56h 34h 12h 00h
0101 0110 0011 0100 0001 0010 0000 0000
Temporary data
I/O port, flag status (0 = OFF, 1 = ON)
OUT(B) command
IN(B) command
OUT(B) command
IN(B) command
OUT(B) command
IN(B) command