In my assembler class, our first task was to write a program to print a simple line with a trailing dollar in DOS. It looked something like this:
BITS 32
global _main
section .data
msg db "Hello, world!", 13, 10, โ$โ
section .text
_main:
mov ah, 9
mov edx, msg
int 21h
ret
As I understand it, the $ sign is used to stop the sting, like null in C. But what if I want to put a dollar sign in a string (for example, I want to print), does it cost $ 30? )? This seems like a simple question, but my professor did not know the answer, and I did not seem to find it using google search.
source
share