assembly - How to convert ascii number to binary in MC68k -


i have write program requires 20 user inputted numbers 0-100 find average of numbers , categorize them failing or passing saves input ascii in memory , have change ascii binary. know ascii numbers 30-39 in hex unsure how implement in mc68k if input 93 number saved 3933 how convert binary?

  clear number loop:   highest digit character not dealt yet   compare digit character '0' ; that's character 0, not value 0   blo done   compare digit character '9'   bhi done   multiply number 0x0a ; 10 in decimal   subtract 0x30 character   add number   jmp loop cone:   ... 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -