Messages in this thread | | | Date | Wed, 25 Mar 1998 21:20:32 +0100 (CET) | From | MOLNAR Ingo <> | Subject | Re: [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
| |