[OpenBIOS] compile vs runtime
Stefan Reinauer
stepan at coresystems.de
Wed Mar 31 22:36:25 CEST 2010
On 3/31/10 10:07 PM, Programmingkid wrote:
> I am trying to make a word that does one thing at compile time, and does another thing at runtime. I think this is how you do it:
>
> : myword
> ." one"
> does> ." two"
> cr ;
>
> When I first use this word, I see "one". Then when I use this word again, I see "two", but it causes OpenBIOS to panic because of a segmentation violation at 3. Is this an OpenBIOS bug, or did I do something wrong?
>
you can also do
: mywork
state @ if
." compile"
else
." interpret"
then
; immediate
or so
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
More information about the OpenBIOS
mailing list