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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/05/03 13:51
Read: times


 
#54166 - RE: IO port - SETB or MOV?
Responding to: ???'s previous message
Erik was right, you should reread the assembler mnemonics.

Your mistakes are:

"CLR"
works on a bit or the A register only.

"MOV ADDR1, ADDR2"
move a value from the byte ADDR2 to the byte ADDR1 and
"MOV ADDR1, #VAL1"
move the value VAL1 into the byte ADDR1
The '#' sign cause the different working.


For easier toggling a port also
"XRL P3, #0FFh"
can be used.


Peter


List of 14 messages in thread
TopicAuthorDate
IO port - SETB or MOV?            01/01/70 00:00      
   RE: IO port - SETB or MOV?            01/01/70 00:00      
      RE: IO port - SETB or MOV?            01/01/70 00:00      
   RE: IO port - SETB or MOV?            01/01/70 00:00      
      RE: IO port - SETB or MOV?            01/01/70 00:00      
         RE: IO port - SETB or MOV?            01/01/70 00:00      
            RE: IO port - SETB or MOV?            01/01/70 00:00      
      RE: IO port - SETB or MOV?            01/01/70 00:00      
         RE: IO port - SETB or MOV?            01/01/70 00:00      
            RE: IO port - SETB or MOV?            01/01/70 00:00      
   RE: IO port - SETB or MOV?            01/01/70 00:00      
      RE: IO port - SETB or MOV?            01/01/70 00:00      
         RE: IO port - SETB or MOV?            01/01/70 00:00      
            RE: IO port - SETB or MOV?            01/01/70 00:00      

Back to Subject List