Assembler Developer

Moderators: None (Apply to moderate this forum)
Number of threads: 960
Number of posts: 1751

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Reading from command line Posted by tasheto on 17 Jan 2009 at 3:14 AM
Hi
I have this code which prints the arguments from the command line to the DOS line.

MOV SI,80H
MOV AL,[SI]
INC SI
XOR AH,AH
ADD SI,AX
MOV BYTE PTR [SI],’$’

MOV AH,9
MOV DX,81H
NT 21H

Can someone give me an answer why is it dome this way, and how can I access the argument that is passed? Cause I tried DX but it doesn't work if I try to compare it with a number.
Thank you
Report
Re: Reading from command line Posted by iyercb on 28 Jan 2009 at 12:31 PM
Go to

http://home.online.no/~reopsahl/files/assem9.htm

and you have a good explanation.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.