flat assembler
Message board for the users of flat assembler.
Index
> Main > Umm... Null strings? |
Author |
|
coconut 08 May 2004, 06:11
print to command prompt?
|
|||
08 May 2004, 06:11 |
|
1800askgeek 08 May 2004, 07:10
nvrmnd I figured it out. just use a loop and a conditional and print it with ax=0200h int 21h.
|
|||
08 May 2004, 07:10 |
|
ShortCoder 08 May 2004, 08:45
Ah, I was gonna say;)
Yeah, it's all in the function you're going to use (I figured you were DOS programming because I remember tons of example DOS asm progs used to use $ in their strings as well because the particular OS-function called required it as end of string and if you wanted something else you needed use a different function;)) |
|||
08 May 2004, 08:45 |
|
vid 08 May 2004, 17:21
how about
Code: db 'string',0,'$' how does DOS beheave when outputting 0 character? |
|||
08 May 2004, 17:21 |
|
ShortCoder 08 May 2004, 21:42
vid wrote: how about Are you thinking C-string behaviour maybe? No, the common DOS print text function expects a $ on the end of the string (as terminator) which makes it so that, if the character you wish to output is the $ character, you'll need to use a different function to get it up there;) I'd imagine DOS would print out 0 as a blank space but you can try it if you want? |
|||
08 May 2004, 21:42 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.