| | |
how to convert decimal value as string input to its hex equivalent
![]() |
Hi angelie and welcome to the forums.
We won't give you code here, but we'll be glad to help you with your own code.
There are two things you need to think about for this assignment:
Hope this helps.
We won't give you code here, but we'll be glad to help you with your own code.
There are two things you need to think about for this assignment:
- How to convert an ASCII digit character to a number. '0' to 0, '1' to 1, etc, and back.
- What is the difference between 1 and 10 and 100. Google "radix" for more. In decimal, the radix is 10. In hexadecimal, the radix is 16, using the ASCII digits 0123456789ABCDEF.
Hope this helps.
![]() |
Other Threads in the Assembly Forum
- Previous Thread: Bios programming, access to ram from bios
- Next Thread: quick question?
| Thread Tools | Search this Thread |






