db usage in nasm, try to store and print string
问题 I was trying to store a few strings in my assembly, and use WriteString to print out on the screen. However, I only call one of the strings, it shows up all of them in one single line. Why does this happen? Is that anything wrong in my code? Thanks! Code here: %include "lib/libasm.h" SECTION .text global main main: call badrng ret badrng: push eax push edx mov edx, badrngstr call WriteString pop edx pop eax call failure ret failure: mov eax,1 int 0x80 ret SECTION .data nlstr: db "" badrngstr: