non-kl-comp.sl 947 B

123456789101112131415161718192021222324252627282930313233343536
  1. %
  2. % NON-KL-COMP.SL - Patches to compiler for KI processor
  3. %
  4. % Author: Eric Benson
  5. % Symbolic Computation Group
  6. % Computer Science Dept.
  7. % University of Utah
  8. % Date: 10 May 1982
  9. % Copyright (c) 1982 University of Utah
  10. %
  11. % <PSL.COMP-20>NON-KL-COMP.SL.6, 13-Oct-82 13:39:27, Edit by BENSON
  12. % Removed unnecessary patch of floating point arith for DMOVE
  13. (setq system_list* (delete 'KL10 system_list*))_
  14. (DefCMacro !*Alloc
  15. ((ZeroP))
  16. ((add (REG st) (lit (halfword ARGONE ARGONE)))
  17. (jumpge (REG st) (Entry StackOverflow))))
  18. (DefCMacro !*DeAlloc
  19. ((ZeroP))
  20. ((sub (REG st) (lit (halfword ARGONE ARGONE)))))
  21. (ForEach X in '(Byte PutByte HalfWord PutHalfWord BitTable PutBitTable) do
  22. (RemProp X 'OpenCode)
  23. (RemProp X 'Destroys))
  24. (RemProp 'AdjustStackPointer 'OpenFn)
  25. (dm AdjustStackPointer (U)
  26. (list 'WPlus2
  27. (cadr U)
  28. (list 'WPlus2 (caddr U) (list 'WShift (caddr U) 18))))