Action
Sends a byte to a
hardware port or external memory address.
Syntax
OUT address, value
Remarks
address The address
where to send the byte to.
value The variable or value to send.
The OUT statement only works on systems with an uP that can address external
memory.
See also
INP
Example
Dim a as byte
OUT &H8000,1 'send
1 to the databus(d0-d7) at hex address 8000
END
Will generate :
Mov A,#1
Mov dptr,#h'8000
Movx @dptr,a
|