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
Post a Comment