From: Ed Beroset
Subject: Re: Directly writing to memor
At 01:13 1/31/98, you wrote:
>
>Replying to a message of Ed Beroset to All:
>
> DG>>>> mov ss:[sp], eax
>
> >> Did you try it? Microsoft's DEBUG says "error", and
> >> OpenDOS's DEBUG says "Incorrect name of index register".
>
> EB> That's because it's not a legal addressing mode.
>
>.386
>...
>mov [esp], eax
>...
>.8086
>:)
You cheated! ;-) Seriously, that's esp, not sp. The instruction "mov
ss:[sp],eax" isn't legal in 32-bit or 16-bit mode.
Ed
-!-
---
---------------
* Origin: The Circuit! Board * Spokane * (1:346/100)
|