tmaint.12 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <DEFINE PRINT-FREE ("OPTIONAL" FOO)
  2. <COND (<NOT <ASSIGNED? FOO>>
  3. <SET FOO
  4. <CHTYPE <1 <GET-LOC <+ ,IDCHAIN <* 1024 <ALLOCPAGE ,TVASS>>>
  5. ,AUV1>>
  6. FIX>>)
  7. (<SET FOO <CHTYPE <ORB *400000000000* .FOO> FIX>>)>
  8. <REPEAT ()
  9. <AND <G=? .FOO 0> <RETURN>>
  10. <SET FOO <CHTYPE <ANDB .FOO #WORD *000000777777*> FIX>>
  11. <COND (<SET M <MEMQ <- .FOO ,SCORE> ,LOSSTABLE>>
  12. <ERROR SCORE-MUNGED .FOO <1 <BACK .M 2>>>)
  13. (<SET M <MEMQ <- .FOO ,QASKED> ,LOSSTABLE>>
  14. <ERROR QASKED-MUNGED .FOO <1 <BACK .M 2>>>)
  15. (<==? .FOO 3> <ERROR LUSERS-MUNGED>)>
  16. <SET Q <DATA-FIND ,TVASS .FOO>>
  17. <PRIN1 .FOO>
  18. <INDENT-TO 6>
  19. <SET FOO <CHTYPE <3 .Q> FIX>>
  20. <CRLF>>>
  21. <DEFINE PRINT-UBLOCK (OFFSET)
  22. <SET L <DATA-AREAD ,TVASS 3 <ARESET ,TVSPACE>>>
  23. <REPEAT ((LL .L))
  24. <AND <TYPE? <1 .LL> FIX> <RETURN>>
  25. <PRINC <1 .LL>>
  26. <PRINC " -- ">
  27. <PRINT <DATA-AREAD ,TVASS <+ <3 .LL> .OFFSET> <ARESET ,TVSPACE1>>>
  28. <CRLF>
  29. <SET LL <REST .LL 4>>>>
  30. <DEFINE PRINT-Q ()
  31. <REPEAT ((FOO <CHTYPE <DATA-READW ,LOWQUES ,TVASS> FIX>))
  32. <AND <0? .FOO>
  33. <RETURN>>
  34. <SET Q <DATA-AREAD ,TVASS .FOO <ARESET ,TVSPACE>>>
  35. <PRIN1 <NTH .Q ,QQNUM>>
  36. <INDENT-TO 10>
  37. <PRIN1 .FOO>
  38. <INDENT-TO 16>
  39. <PRINC <NTH .Q ,QAUTH>>
  40. <INDENT-TO 23>
  41. <PRIN1 <NTH .Q ,QCAT>>
  42. <SET FOO <CHTYPE <DATA-READW .FOO ,TVASS> FIX>>
  43. <CRLF>>>
  44. <DEFINE PRINT-A (WHR)
  45. <REPEAT ((FOO <CHTYPE <DATA-READW .WHR ,TVASS> FIX>))
  46. <AND <0? .FOO>
  47. <RETURN>>
  48. <SET Q <DATA-AREAD ,TVASS .FOO <ARESET ,TVSPACE>>>
  49. <PRIN1 .FOO>
  50. <INDENT-TO 6>
  51. <PRIN1 <NTH .Q ,AQUES>>
  52. <SET FOO <CHTYPE <DATA-READW .FOO ,TVASS> FIX>>
  53. <CRLF>>>
  54. <DEFINE PRINT-CHAIN (WHR)
  55. <REPEAT ((FOO <CHTYPE <DATA-READW .WHR ,TVASS> FIX>))
  56. <AND <0? .FOO>
  57. <RETURN>>
  58. <SET Q <DATA-AREAD ,TVASS .FOO <ARESET ,TVSPACE>>>
  59. <PRIN1 .FOO>
  60. <INDENT-TO 6>
  61. <PRIN1 .Q>
  62. <SET FOO <CHTYPE <DATA-READW .FOO ,TVASS> FIX>>
  63. <CRLF>>>
  64. ; "LENGTH OF CHAIN POINTER IN AN ASYLUM"
  65. <DEFINE CHAIN-LENGTH (WD "AUX" (CNT 0))
  66. #DECL ((WD) <PRIMTYPE WORD> (CNT) FIX)
  67. <REPEAT ((WD <CHTYPE .WD FIX>))
  68. <COND (<0? <SET WD <CHTYPE <DATA-READW .WD ,TVASS> FIX>>>
  69. <RETURN .CNT>)
  70. (<SET CNT <+ .CNT 1>> <CRLF> <PRIN1 .WD>)>>>
  71. <DEFINE DR (FX)
  72. #DECL ((FX) FIX)
  73. <DATA-AREAD .FX ,TVASS <ARESET ,TVSPACE>>>
  74.