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 19:50
Read: times


 
Msg Score: -3
 -3 Looks like homework
#145913 - ASCII to Binary in Assembly
I am havin a really hard time with this assingment may someone give some guidence.

Create a new project named: P2 Basic Arithmetic. Create a new source file named: FirstLastname_P2.asm. Create a data segment and main procedure as follows:

.data

binary dword ?

ascii byte "123456789"

asciiz byte 0




.code

main PROC

call AtoB ;convert ASCII to Binary

nop ;landing spot for debugger

main ENDP



Create the new AtoB procedure to convert the ASCII string (ascii) to binary, and store the binary value in a memory double word (binary). The ASCII string will be 10 characters or less, and the binary value will be an unsigned dword (up to 4 billion). The asciiz byte could be used to help find the end of the string (since its length is variable). Your program will have no user I/O, you will need to use Debug to demonstrate that it works (include highlighted screenshots of the debugger to show the answer). Make your code as small as possible; however, don’t skimp on white space and good comments. Each line of code should be commented, and a comment block at the start of your source code should contain your name, the date, the project name and number, and a description of what the program does. If your program does not work perfectly for all test data, explain what is wrong.



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