Mail Archives: djgpp/2004/01/15/15:15:25
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
From: | "Sergey Gotsulyak" <sergo AT pisem DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | AT&T Asm question
|
Date: | Fri, 16 Jan 2004 01:14:18 +0500
|
Lines: | 30
|
Message-ID: | <bu6sbo$e91q9$1@ID-199380.news.uni-berlin.de>
|
NNTP-Posting-Host: | ns.novotec.ru (82.195.11.25)
|
X-Trace: | news.uni-berlin.de 1074197689 14976841 82.195.11.25 ([199380])
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 6.00.2600.0000
|
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000
|
X-Comment-To: | All
|
FL-Build: | Fidolook 2002 (SL) 6.0.2800.85 - 28/1/2003 19:07:30
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hello, All!
I can't assemble next code:
// Compute offset for GDT and IDT
xor %eax,%eax
mov %cs,%ax
shl $4,%eax
add $_GDT,%eax
Trouble:
mov %eax,$GDTDescriptor
Asm error "suffix or operands invalid for mov"
But it assemble this code in form
// Compute offset for GDT and IDT
xor %eax,%eax
mov %cs,%ax
shl $4,%eax
add $_GDT,%eax
Correct:
mov %eax,GDTDescriptor
But I want relative address here! Help me with real offset of GDTDescriptor
value.
With best regards, Sergey Gotsulyak. E-mail: sergo AT pisem DOT net
- Raw text -