home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp48 / 5852 < prev    next >
Encoding:
Text File  |  1992-11-20  |  981 b   |  41 lines

  1. Newsgroups: comp.sys.hp48
  2. Path: sparky!uunet!tcsi.com!iat.holonet.net!brianw
  3. From: brianw@iat.holonet.net (Brian Walsh)
  4. Subject: Re: LISP in system RPL
  5. Message-ID: <By0xrz.J8M@iat.holonet.net>
  6. Organization: HoloNet
  7. References: <MHEISKAN.92Nov18214543@lk-hp-1.hut.fi>
  8. Date: Fri, 20 Nov 1992 16:57:34 GMT
  9. Lines: 30
  10.  
  11. mheiskan@hut.fi (Mika Heiskanen) writes:
  12. : Slightly shorter and faster:
  13. : ::
  14. :   ' :: SWAP#1+ TRUE ;
  15. :   2Ob>Seco 1LAMBIND
  16. :   ZEROSWAP
  17. :   :: GOTO PTR 58CF8 ;    @ The first instruction is symcomp :(
  18. :   ABND {}N
  19. : ;
  20. Very good improvement.  The following also includes argument checking
  21. and allows the process to be a list (especially handy for programs built
  22. on the fly and then evaluated with LISP):
  23. :: CK2NOLASTWD
  24.    CK2&Dispatch EIGHTY
  25.    :: INNERCOMP ::N
  26.    '  :: SWAP#1+ TRUE
  27.       ; 2Ob>Seco 1LAMBIND ZEROSWAP
  28.       :: GOTO
  29.          ASSEMBLE
  30.             CON(5)    #58CF8
  31.          RPL
  32.       ; ABND {}N
  33.    ;
  34. ;
  35. 57.5 bytes
  36.  
  37. -- Brian Walsh
  38.    brianw@holonet.net
  39.  
  40.