home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt!willett!ForthNet
- From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
- Newsgroups: comp.lang.forth
- Subject: PYGMY Forth
- Message-ID: <4236.UUL1.3#5129@willett.pgh.pa.us>
- Date: 11 Jan 93 11:17:38 GMT
- Organization: EIEI-U
- Lines: 35
-
- Category 7, Topic 22
- Message 136 Sun Jan 10, 1993
- B.RODRIGUEZ2 [Brad] at 14:27 EST
-
- For anyone who's interested, I had occasion to define ;CODE for Pygmy 1.4 the
- other day:
-
- COMPILER
- : ;CODE
- \ DOES> -3 ALLOT ( COMPILE does)
- \ RECURSIVE POP DROP
- ASM-RESET ;
- FORTH
-
- If you recompile the kernel so that 'does' has a header, you can use 'COMPILE
- does' instead of ' \ DOES> -3 ALLOT '. Example usage:
-
- : OFFSET ( build words which add an offset to TOS)
- CREATE ,
- ;CODE
- BX AX XCHG, 3 [BX] AX ADD, BX AX XCHG, NXT,
- END-CODE
-
- 3 OFFSET 3+
-
- Brad Rodriguez B.RODRIGUEZ2 on GEnie
- b.rodriguez2@genie.geis.com (at last! preferred, fastest response)
- bradford@maccs.dcss.mcmaster.ca (use this for long messages, > 4Kb)
- So many projects....so little time.
-
- -----
- This message came from GEnie via willett. You *cannot* reply to the author
- using e-mail. Please post a follow-up article, or use any instructions
- the author may have included (USMail addresses, telephone #, etc.).
- Report problems to: dwp@willett.pgh.pa.us
-