| | |
NEED HELP! (hex to decimal output)
![]() |
•
•
Join Date: Mar 2008
Posts: 1
Reputation:
Solved Threads: 0
guys! i realy need your help! i have this big problem of how to convert hex to decmal. theoreticaly it is very easy but the problem is that in assembly, everything is done in hex example if u add 10d+10d, assembly will add it as Ah+Ah = 14h. thats where the problem comes in! how do i display 20 and not 14h?
•
•
Join Date: Dec 2008
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
guys! i realy need your help! i have this big problem of how to convert hex to decmal. theoreticaly it is very easy but the problem is that in assembly, everything is done in hex example if u add 10d+10d, assembly will add it as Ah+Ah = 14h. thats where the problem comes in! how do i display 20 and not 14h?
divide ax by bx the remainder will be in dx,take this and store at last index of memeory that you will use,and loop will run 4 time or till that ax becomes zero finally result will be in memory.
Try this it.s so easy.............
![]() |
Similar Threads
- String Input & Output (C++)
- One's Compliment Dec to Hex Conversion (Assembly)
- Accepting decimal value as hex value (C)
- need help on pep/8 machine language program (Assembly)
- reading a hexadecimal number (C++)
- Converting Dec to Hex without using IntToHex... (Pascal and Delphi)
- How do I Take in Hexidecimal input out put binary, decimal, and octal (Java)
- Amature Program- Lacking (C++)
- decimal > binary > Oct > Hex (C++)
Other Threads in the Assembly Forum
- Previous Thread: I need help with matrix color
- Next Thread: String Concatenation Help
| Thread Tools | Search this Thread |






