flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
coconut
print to command prompt?
|
|||
![]() |
|
1800askgeek
nvrmnd I figured it out. just use a loop and a conditional and print it with ax=0200h int 21h.
|
|||
![]() |
|
ShortCoder
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;)) |
|||
![]() |
|
vid
how about
Code: db 'string',0,'$' how does DOS beheave when outputting 0 character? |
|||
![]() |
|
ShortCoder
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? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.