Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!news.cs.indiana.edu!cs.widener.edu!dsinc!unix.cis.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Conventions and "tricks" used in Forth Message-ID: <2471.UUL1.3#5129@willett.pgh.pa.us> Date: 8 Mar 91 05:03:22 GMT Organization: (n.) to be organized. But that's not important right now. Lines: 59 Date: 03-04-91 (18:48) Number: 1406 of 1406 To: CHARLIE HITSELBERGER Refer#: NONE From: IAN WATTERS Read: NO Subj: AUTO-INCREMENTING Status: PUBLIC MESSAGE Conf: FORTH (58) Read Type: GENERAL (+) CH>Another question: I'm using hardware with a 40*25 video display, and CH>forth blocks are 64*16 by convention. On a machine with a 40 column display, it's easiest to make blocks 512 bytes long and display them as 32x16... The only layout problems I had using this arrangement were with long code words which often overflowed onto the next block. One system (rqFORTH on the BBC Micro) had the following word: : ->> (S -- ) 2 BLK +! 0 >IN ! ; IMMEDIATE ie just like --> except that you skip a screen. The skipped screens could then be used for comments, so when they were printed out it looked like: ---------------------------------------------- Screen 6 Screen 7 code comments on more code screen 6 etc ->> Screen 8 Screen 9 code comments on more code screen 8 etc ->> Screen 10 Screen 11 code comments on more code screen 10 etc ->> ---------------------------------------------- This worked well and 32x16 *does* encourage short definitions! //\/\/ --- ~ SLMR 1.05 #109 ~ My tagline's s lipped ! PCRelay:OLEF -> #181 RelayNet (tm) 4.10 O.L.E.F.1. London ->OLEF (+44) 81-882-9808 <<<>>> ----- 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 _or_ uunet!willett!dwp