lkml.org 
[lkml]   [1998]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] APM support doesn't compile with binutils 2.8.1.0.24

On Wed, 25 Mar 1998, H. J. Lu wrote:

> > In short:
> >
> > push %ds : legal, should default to 32-bit mode, no override
>
> Does esp really change by 4 with opcode "0x1e" or "0x661e"?


void main()
{
int res;

asm("movl %%esp, %%eax; pushl %%ds; subl %%esp, %%eax":"=a"(res));
printf("delta: %08x\n", res);

asm("movl %%esp, %%eax; pushw %%ds; subl %%esp, %%eax":"=a"(res));
printf("delta: %08x\n", res);
}

-- mingo



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:4.211 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site