944,135 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 3559
  • Assembly RSS
Apr 16th, 2007
0

NASM Int 21 Function 9 Help

Expand Post »
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:
Assembly Syntax (Toggle Plain Text)
  1. mov ah,09h
  2. mov dx,msg
  3. int 21
  4.  
  5. msg: db 'hello$'
Any help would be splendid. Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
in7en7 is offline Offline
2 posts
since Apr 2007
Apr 16th, 2007
0

Re: NASM Int 21 Function 9 Help

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
Reputation Points: 31
Solved Threads: 0
Light Poster
Purple Avenger is offline Offline
49 posts
since Jan 2007
Apr 17th, 2007
0

Re: NASM Int 21 Function 9 Help

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
in7en7 is offline Offline
2 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: convert number base
Next Thread in Assembly Forum Timeline: help me boot disk





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC