RE: [colorforth] Strage ColorForth results
- Subject: RE: [colorforth] Strage ColorForth results
- From: Frédéric DUBOIS <frederic.dubois@xxxxxxxxxxxxx>
- Date: Tue, 24 Feb 2004 16:23:43 +0100
> -----Message d'origine-----
> De : John Drake [mailto:jmdrake_98@xxxxxxxxx]
> Envoyé : mar. 24 février 2004 16:15
> À : colorforth@xxxxxxxxxxxxxxxxxx
> Objet : Re: [colorforth] Strage ColorForth results
>
>
>
> --- "Roman Pavlyuk (personal)" <john@xxxxxxxxxxxxx>
> wrote:
> > Since in CF IF and -IF are implemented as jz and jnc
> > opcodes
> > that check values of Z and C flags respectively.
> >
> > Try inserting '?' after the literal -- it compiles
> > into test eax, eax,
> > which should set Z flag (C flag is zeroed, but plz
> > check with Inter's
> > manual)
>
> Hello Roman,
>
> I don't think I'm following you. I already have a '?'
> inserted after the literal.
>
> Again here is one version of the code:
>
> : 0? ? drop if 0 ; then 1 ;
>
Maybe drop modifies the Z flag in an unpredictable way ?
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com