[retroforth] Re: 'reset' not working correctly

  • From: "Helmar Wodtke" <helmwo@xxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Tue, 25 Jan 2005 17:39:29 +0100

retroforth@xxxxxxxxxxxxx schrieb am 25.01.05 17:29:54:

> No.  Do this instead:
>    mov esi, s0
>    mov eax, [esi]
> 
> 
> The problem is that eax remains holding TOS ... but it's the old TOS.

Well, shorter could be:

mov esi, s0
xor eax,eax

A little longer, but more correct:

mov esi, s0
mov eax,[esi-4]

Or I'm wrong? The problem is that the original TOS should be on [esi-4] - and 
this is probably overwritten by earlier actions (it does not need to, of 
course...)

Bis dann,
Helmar
helmwo@xxxxxx


-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-pkcs7-signature
-- File: smime.p7s
-- Desc: S/MIME Cryptographic Signature



Other related posts: