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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/29/07 22:57
Read: times


 
#141355 - It is ASM
Responding to: ???'s previous message
There is sample code in the libray look there
x1: db "0"
x2: db "1"
.
.
.
.
mov x1,"0101" ; NO

mov x1,"0"
mov x2,"1"
mov x3,"0"
mov x4,"1"

I did not Look up the mov comand. But in general
You have a source (src) and a destination (dest)
You can not move anything anywhere.
You may have to use the Accumulator
mov a,x1
mov x2,a

If you need a pointer
mov @r0
movc @dptr
movx @r0
movx @dptr

Look for the 8051 Bible in Links.


List of 13 messages in thread
TopicAuthorDate
assembly help, please.            01/01/70 00:00      
   Confusion            01/01/70 00:00      
   use DB            01/01/70 00:00      
      i know            01/01/70 00:00      
         It is ASM            01/01/70 00:00      
         ram in 8051            01/01/70 00:00      
            SEG            01/01/70 00:00      
            query            01/01/70 00:00      
               Yes            01/01/70 00:00      
                  Protection??            01/01/70 00:00      
                     A bit unclear...            01/01/70 00:00      
                        tricky...            01/01/70 00:00      
                           Indeed...            01/01/70 00:00      

Back to Subject List