NASM Int 21 Function 9 Help

Reply

Join Date: Apr 2007
Posts: 2
Reputation: in7en7 is an unknown quantity at this point 
Solved Threads: 0
in7en7 in7en7 is offline Offline
Newbie Poster

NASM Int 21 Function 9 Help

 
0
  #1
Apr 16th, 2007
Hello, I'm having some problems getting int21 function 9 working correctly.

I've searched around a little bit, but I seem to be missing something still because no matter what I change it doesn't seem to display what I'd like it to.

It seems to me that it should look like:
  1. mov ah,09h
  2. mov dx,msg
  3. int 21
  4.  
  5. msg: db 'hello$'
Any help would be splendid. Thanks.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 49
Reputation: Purple Avenger is an unknown quantity at this point 
Solved Threads: 0
Purple Avenger Purple Avenger is offline Offline
Light Poster

Re: NASM Int 21 Function 9 Help

 
0
  #2
Apr 16th, 2007
maybe it wants: "offset message" ?

Don't forget that DS needs to be set to the segment the message is in if this code isn't already running with DS=CS
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 2
Reputation: in7en7 is an unknown quantity at this point 
Solved Threads: 0
in7en7 in7en7 is offline Offline
Newbie Poster

Re: NASM Int 21 Function 9 Help

 
0
  #3
Apr 17th, 2007
I figured it out. NASM doesn't use "Offset msg" it uses brackets: [msg]. Thanks for sending me looking in the right place.
Last edited by in7en7; Apr 17th, 2007 at 1:39 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC