From: Kalus M. <mic...@on...> - 2008-07-15 22:37:07
|
Bernhard. Am 15.07.2008 um 03:03 schrieb Bernard Mentink: > > Also, in the FSM code he defines a PERFORM word as: .... : PERFORM > compile > @ compile execute ; > Would the same thing in amForth be: .... : PERFORM defer @ defer > execute ; > or do we still use "compile"???? I am a bit > rusty on what "defer" does. > No idea what ist goin on here. I found a definition in former F83 for the 6502 cpu: : PERFORM ( ADDR -- ) @ EXECUTE ; gforth doc says: ...execute performs the semantics represented by the XT (i.e., for XTs produced with ’ the interpretation semantics). So: ' swap execute simply does SWAP To get an execution vector you can store an XT (execution token) into a variable and PERFORM this variable with the phrase @ EXECUTE variable dance ' hiphop dance ! ... perform dance ... ' walz dance ! ... perform dance Does this help? Michael |