Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: 16 bit dos ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 19 Topic 4532 of 4860
Post > Topic >>

Re: 16 bit dos debug options?

by Terence <spamtrap@[EMAIL PROTECTED] > Feb 19, 2008 at 02:19 PM

I think there are several erros, but the first thing I don't like is
your first assuming AX contains the handle, and then changing AH
before moving what WAS the handle to BX.

;read the input file
mov ah, 3fh ;fn for reading           ; but just destroying AX in the
general case
mov bx, ax ;prev handle returned in ax, mov to bx for read   ; now BH
has #3fh
mov cx, BufSize ; bytes to read
mov dx, offset buffer ;variable that rcvs read-in
int 21h
jc Quit


This should have started
mov bx, inhandle
mov ax, 3f00h
 




 19 Posts in Topic:
16 bit dos debug options?
Pop Tart <spamtrap@[E  2008-02-19 15:34:31 
Re: 16 bit dos debug options?
Terence <spamtrap@[EM  2008-02-19 14:19:19 
Re: 16 bit dos debug options?
Jim Leonard <spamtrap  2008-02-19 14:40:38 
Re: 16 bit dos debug options?
"H. Peter Anvin"  2008-02-19 17:47:52 
Re: 16 bit dos debug options?
Frank Kotler <spamtra  2008-02-20 01:05:12 
Re: 16 bit dos debug options?
"camille@[EMAIL PROT  2008-02-24 22:50:24 
Re: 16 bit dos debug options?
Frank Kotler <spamtra  2008-02-25 11:36:52 
Re: 16 bit dos debug options?
ArarghMail802NOSPAM <s  2008-02-19 18:23:59 
Re: 16 bit dos debug options?
Brian Phillips <spamt  2008-02-19 20:09:57 
Re: 16 bit dos debug options?
Brian Phillips <spamt  2008-02-19 20:07:27 
Re: 16 bit dos debug options?
Jim Leonard <spamtrap  2008-02-20 10:10:54 
Re: 16 bit dos debug options?
Pop Tart <spamtrap@[E  2008-02-22 09:41:11 
Re: 16 bit dos debug options?
"Alexei A. Frounze&q  2008-02-20 00:58:48 
Re: 16 bit dos debug options?
Brian Phillips <spamt  2008-02-20 10:11:23 
Re: 16 bit dos debug options?
ArarghMail802NOSPAM <s  2008-02-20 20:34:52 
Re: 16 bit dos debug options?
Pop Tart <spamtrap@[E  2008-02-22 20:31:52 
Re: 16 bit dos debug options?
"Alexei A. Frounze&q  2008-02-22 14:58:51 
Re: 16 bit dos debug options?
Jim Leonard <spamtrap  2008-02-25 11:31:44 
Re: 16 bit dos debug options?
Bill <spamtrap@[EMAIL  2008-04-09 14:51:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 20:47:22 CST 2008.