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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/18/07 22:16
Read: times


 
#145925 - Definitely not 8051!
Responding to: ???'s previous message
Rodrigo Araujo said:
mov al, ascii ; for the first element in the string "12345..."
mov ah, ascii+1; for the second element in the string"12345.."

The 8051 is an 8-bit processor - it does not have AL and AH registers!

sub al, 30h ; so i get the decimal and not the hex

But that will only affect AL, won't it?
What about the other character that you put into AH...?

But my question is how i would store all the number in eax so i can use another PROC to make eax into a binary

Again, there is no such thing as EAX on an 8051, so you are in the wrong forum for that question!

But I think you should take another approach:
Don't try to load all the characters at once - use a loop to process them one at a time...

List of 19 messages in thread
TopicAuthorDate
ASCII to Binary in Assembly            01/01/70 00:00      
   What guidance do you need?            01/01/70 00:00      
      this might be part of the fun :-)            01/01/70 00:00      
         Not 8051?            01/01/70 00:00      
            Isn't a double 32 bits?            01/01/70 00:00      
               I think so            01/01/70 00:00      
                  No, it's not correct            01/01/70 00:00      
               No, that's wrong.            01/01/70 00:00      
                  Thanks            01/01/70 00:00      
      I'm here so far !!            01/01/70 00:00      
         Definitely not 8051!            01/01/70 00:00      
            you are on 8052.com...            01/01/70 00:00      
      Sorry Andy            01/01/70 00:00      
         Leg up            01/01/70 00:00      
            I think i got it! may u check it?            01/01/70 00:00      
               listen to your teacher            01/01/70 00:00      
               Check            01/01/70 00:00      
   Bonus question            01/01/70 00:00      
      Lol            01/01/70 00:00      

Back to Subject List