TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: ALL
from: ED BEROSET
date: 1998-02-03 21:23:00
subject: Re: Directly writing to m

From: Ed Beroset 
Subject: Re: Directly writing to m
Brian McCloud wrote:
> 
> EB>> SM> (assuming, of course, that mov ax,ss:[sp] worked ;)
> EB>>
> EB>>DG> Why wouldn't it?
[...]
> EB>there is no way to specify [sp] as a destination address.
> 
> However, in 32-bit addressing modes, the SIB byte allows ss:[esp] as a
> destination.  So,
>         mov     ss:[esp], eax
> encodes as (hexidecimal, assuming a Use32 segment)
>   8B 04 24
That's certainly true, but [esp] and [sp] are not the same thing. 
There's a way to use [esp] but not [sp] as a destination address.  Sorry
if that wasn't clear.
Ed
-!-
---
---------------
* Origin: The Circuit! Board * Spokane * (1:346/100)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.