Re: Assignment #1--Question #2

Ed Casas (edc@ece.ubc.ca) Fri, 20 Oct 2000 08:29:35 -0700


Date: Fri, 20 Oct 2000 08:29:35 -0700
From: Ed Casas <edc@ece.ubc.ca>
Subject: Re: Assignment #1--Question #2

> Do we need to set the ds to zero to read the interrupts' CS and > IP starting at 0000h? If so, how can we do that?? Yes. You can load the segment registers with a MOV instruction. Something like: mov cx,ds ; save current value of DS mov ds,0 ; point to lowest segment mov ax,[bx] ; get a word from interrupt vector mov ds,cx ; restore DS will allow you to read from segment value 0 and the offset in bx. -- Ed Casas edc@ece.ubc.ca http://casas.ece.ubc.ca +1 604 822-2592