Ed Casas (edc@ece.ubc.ca) Fri, 20 Oct 2000 08:29:35 -0700
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- New Message to:eece379@listhost.ece.ubc.ca
- Reply to:Re: Assignment #1--Question #2
- Next message: Christopher Chan Lam Liu: "assignment Question #2"
- Previous message: Ed Casas: "Re: Lab 2"
- In reply to: Greg Frey: "Lab 2"
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
- Next message: Christopher Chan Lam Liu: "assignment Question #2"
- Previous message: Ed Casas: "Re: Lab 2"
- In reply to: Greg Frey: "Lab 2"