[program-l] Re: assembly help?

  • From: "Mike Gorse" <mike@xxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Thu, 5 Jan 2006 16:15:30 -0500

You can't manipulate all registers as you can with general purpose registers such as ax and dx.

xor ds,ds

If you really want to do this, you need something like xor ax,ax mov ds,ax

Also, this probably isn't what you want:

xor ax,ax
mov dx,offset command
mov ax,SEG command

You set ax to 0 but don't do anything with that value before you set it to something else. Same with your code to set ds to 0.


-Mike G-

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: