Simple way to print value of a register in x86 assembly.
Posted
by Bob
on Stack Overflow
See other posts from Stack Overflow
or by Bob
Published on 2010-04-25T17:01:26Z
Indexed on
2010/04/25
17:03 UTC
Read the original article
Hit count: 184
I need to write a program in 8086 Assembly that receives data from the user, does some mathematical calculations and prints the answer on the screen, I have written all parts of the program and all work fine but I don't know how to print the number to the screen.
At the end of all my calculation the answer is AX and it is treated as an unsigned 16 bit integer. How do I print the decimal (unsigned) value of the AX register?
© Stack Overflow or respective owner