Re: Accessing debug registers with nasm
From: David Lindauer (spamtrap_at_crayne.org)
Date: 10/31/04
- Next message: Phil Carmody: "Re: Accessing debug registers with nasm"
- Previous message: spamtrap_at_crayne.org: "Re: Accessing debug registers with nasm"
- In reply to: devesh: "Re: Accessing debug registers with nasm"
- Next in thread: devesh: "Re: Accessing debug registers with nasm"
- Reply: devesh: "Re: Accessing debug registers with nasm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 31 Oct 2004 08:53:40 +0000 (UTC)
devesh wrote:
> Hi Phil,
> Thanks a lot , but I still don't get it why xor dr6 ,dr6 should give an
> error . Because dr6 and dr7 are supposed to be written to for setting
> up debugging . Can you guide to some online reference regarding this ,
> that would be great.
> Sincerely
> Devesh Agrawal
the way intel specified the debug and control (and test) register sets, the
only thing you can do with those registers is move them to and from general
purpose registers. you can't do anything else like math functions with
those registers. If you want to clear dr6 you can do:
xor eax,eax
mov dr6,eax
there really is no shortcut for this, the ONLY assembly language
instruction that will work with these registers is mov.
David
- Next message: Phil Carmody: "Re: Accessing debug registers with nasm"
- Previous message: spamtrap_at_crayne.org: "Re: Accessing debug registers with nasm"
- In reply to: devesh: "Re: Accessing debug registers with nasm"
- Next in thread: devesh: "Re: Accessing debug registers with nasm"
- Reply: devesh: "Re: Accessing debug registers with nasm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|