RE: [colorforth] Machineforth IFs
- Subject: RE: [colorforth] Machineforth IFs
- From: Fréderic DUBOIS <frederic.dubois@xxxxxxxxxxxxx>
- Date: Tue, 28 Jan 2003 14:00:57 +0100
Well, I was rather looking for "design" techniques. I'm aware of only one,
factoring the IFs inside a generic words so that "higher" IFs disappear (
like MIN or MAX or their primitive, SORT). That's the kind of thing you've
done with ?1+, I guess.
> -----Message d'origine-----
> De : Frank Kujawski [mailto:frank@xxxxxxxxxxxx]
> Envoyé : lun. 27 janvier 2003 16:21
> À : colorforth@xxxxxxxxxxxxxxxxxx
> Cc : Frank Kujawski
> Objet : Re: [colorforth] Machineforth IFs
>
>
> I have been playing with the idea of flags. Two is all that
> I seem to use
> regularly, zero and carry. all alu instructions would set
> the flag, and a
> compare instruction. (cmp would compare the top two values, but only
> drop the top value.) I also have included 4 'if' command they are
> jmp[not](zero|carry), I did also find it convient to add one other
> instruction, ?1+, inc if carry set.
> Frank
>
> > Is there particular techniques which are to be used with
> machineforth IFs?
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com