Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

assembly in windows xp??

[b][red]This message was edited by rhboarder at 2004-5-19 7:50:0[/red][/b][hr]
whenever i have a string and i want to display it, it never works unless the string is "hello world!$" for example:
[code]
Hello db "hello world!$"

mov dx,offset Hello
mov ah,9
int 21h
int 20h
[/code]
... that works but:
[code]
MyMsg db "hello world! blah blah$"

mov dx,offset Hello
mov ah,9
int 21h
int 20h
[/code]
... that doesnt
it seems that if the string is more or less characters than "hello world!" then it doesnt work. can someone help me?


Comments

  • shaolin007shaolin007 Member Posts: 1,018
    : [b][red]This message was edited by rhboarder at 2004-5-19 7:50:0[/red][/b][hr]
    : whenever i have a string and i want to display it, it never works unless the string is "hello world!$" for example:
    : [code]
    : Hello db "hello world!$"
    :
    : mov dx,offset Hello
    : mov ah,9
    : int 21h
    : int 20h
    : [/code]
    : ... that works but:
    : [code]
    : MyMsg db "hello world! blah blah$"
    :
    : mov dx,offset Hello[red] mov dx, offset MyMsg[/red]
    : mov ah,9
    : int 21h
    : int 20h
    : [/code]
    : ... that doesnt
    : it seems that if the string is more or less characters than "hello world!" then it doesnt work. can someone help me?
    :
    :
    :

    [green] Don't know if you did that by accident, but it should point to MyMsg.[/green]
Sign In or Register to comment.