Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/01/02 07:01
Read: times


 
#25043 - RE: MOV cmd for sending a byte to a port
Hi Jeff,

As Ijaz already showed, you can write MOV P2, #11100001b. The 'secret' is in the #. Without it, the second parameter will be seen by the assembler as the address of a memory location (direct addressing). With it, it is seen as a number. Numbers can be given in either hex (E1h), decimal (225, with or without a "d"), octal (341o) or binary (11100001b).

Regards,
Rob.

List of 8 messages in thread
TopicAuthorDate
MOV cmd for sending a byte to a port            01/01/70 00:00      
RE: MOV cmd for sending a byte to a port            01/01/70 00:00      
RE: MOV cmd for sending a byte to a port            01/01/70 00:00      
RE: MOV cmd for sending a byte to a port            01/01/70 00:00      
RE: MOV cmd for sending a byte to a port            01/01/70 00:00      
RE: MOV cmd for sending a byte to a port            01/01/70 00:00      
RE: MOV cmd for sending a byte to a port            01/01/70 00:00      
RE: MOV cmd for sending a byte to a port            01/01/70 00:00      

Back to Subject List