assembly - dollar-terminated strings -


itemprop = "text">

In my assembly language class, our first assignment was to write a program to print a simple dollar-finished string in a DOS. This looks like this:

  BITS 32 global _ main section. Data msg DB "Hello, World!", 13, 10, '$' section. Text 1main: mov ah, 9mov edx, msg int 21h ret  

As I understand it, the $ symbol acts like a horn to eliminate empty but in C What do I do if I want to sign in dollars string (like I want to print "it's $ 30 cost")? It seems like a simple question, but my professor did not know the answer and I do not think it's about using Google search.

You can use 0x09 of DOS to display $ You can not use the service, you must 0x02 . See.


Comments