Printing out a number in assembly language?

Have you tried int 21h service 2? DL is the character to print. To print the integer value, you’ll have to write a loop to decompose the integer to individual characters. If you’re okay with printing the value in hex, this is pretty trivial. If you can’t rely on DOS services, you might also be … Read more