From: Matthias T. <mt...@we...> - 2011-04-10 19:01:17
|
Hi, >>> Yes, UNTIL consumes a flag. IF consumes a flag too. > >> OK. Does amforth's words page have then error in if ( -- addr ) >> ? shouldn't that be ( f -- addr) Also until ( addr -- ) >> looks wrong. (f -- ) as it is making boolean decission. > > You are right, that has to be fixed. IF has multiple stack effects, its a compiler word. When called as part of the compiler, it leaves an address on the stack, when called at runtime it consumes a flag. I have no good idea to document this yet. btw: the sleep word takes now a parameter which contains the actual sleep mode and I checked in the timer interrupt in forth - democode. Nothing exciting but hopefully useful Matthias |