how to display $ character in assembly


May i know how should i display "$" character using INT21H function 09H?

For example, "The total charge is $200"

How should i write the coding?

Thanks in advance.


  • [code]
    MOV DL, '$'
    MOV AH, 2
    INT 21H
    [color=Blue]The first part of the output (up until $) should be printed with Function 09H, then use code above to print a dollar character and then again use 09H to print the value.[/color]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion