Artifact c3a9b522c1285424938bee2005e728916beb3b3d960f92a552b3e1d0ed655c4a:
- File
psl-1983/20-comp/dec20-data-machine.red
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1855) [annotate] [blame] [check-ins using] [more...]
% % 20-DATA-MACHINE.RED - Lisp item constructors & selectors for Dec-20 Syslisp % % Author: Eric Benson % Symbolic Computation Group % Computer Science Dept. % University of Utah % Date: 10 July 1981 % Copyright (c) 1981 University of Utah % % <PSL.20-COMP>20-DATA-MACHINE.RED.1, 25-Feb-82 17:24:56, Edit by BENSON % Converted from VAX version (which was previously converted from 20 version!) % Primitives handled by the compiler are BYTE, PUTBYTE, GETMEM, PUTMEM, % MKITEM, FIELD, SIGNEDFIELD, PUTFIELD fluid '(system_list!*); system_list!* := '(Dec20 PDP10 Tops20 KL10); BothTimes << exported WConst TagStartingBit = 0, TagBitLength = 5, InfStartingBit = 18, InfBitLength = 18, GCStartingBit = 5, GCBitLength = 13, AddressingUnitsPerItem = 1, CharactersPerWord = 5, BitsPerWord = 36, AddressingUnitsPerFunctionCell = 1, StackDirection = 1; >>; syslsp macro procedure GCField U; list('Field, cadr U, '(WConst GCStartingBit), '(WConst GCBitLength)); syslsp macro procedure PutGCField U; list('PutField, cadr U, '(WConst GCStartingBit), '(WConst GCBitLength), caddr U); % Retrieve the address stored in the function cell syslsp macro procedure SymFnc U; list('WGetV, '(WConst SymFnc), cadr U); syslsp macro procedure PutSymFnc U; list('WPutV, '(WConst SymFnc), cadr U, caddr U); % Macros for building stack pointers syslsp macro procedure MakeStackPointerFromAddress U; list('WOr, list('WShift, list('WDifference, 0, caddr U), 18), list('WDifference, cadr U, 1)); syslsp macro procedure MakeAddressFromStackPointer U; list('Field, cadr U, 18, 18); put('AdjustStackPointer,'OpenFn,'(NonAssocPat !*ADJSP)); lisp procedure !*ADJSP(Arg1, Arg2); Expand2OperandCMacro(Arg1, Arg2, '!*ADJSP); put('EOF, 'CharConst, char cntrl Z); END;