laptest-alm.lap 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. (LAP '(
  2. (*ENTRY FOO1 EXPR 1)
  3. (*ALLOC 0)
  4. (*EXIT 0)
  5. ))
  6. (LAP '(
  7. (*ENTRY FOO2 EXPR 1)
  8. (*ALLOC 0)
  9. (*MOVE (QUOTE 1) (REG 1))
  10. (*EXIT 0)
  11. ))
  12. (LAP '(
  13. (*ENTRY FOO3 EXPR 1)
  14. (*ALLOC 0)
  15. (*MOVE (QUOTE 3) (REG 2))
  16. (*LINKE 0 PLUS2 EXPR 2)
  17. ))
  18. (LAP '(
  19. (*ENTRY FOO4 EXPR 1)
  20. (*ALLOC 0)
  21. (*MOVE (QUOTE 4) (REG 2))
  22. (*LINK PLUS2 EXPR 2)
  23. (*LINKE 0 PRINT EXPR 1)
  24. ))
  25. (LAP '(
  26. (*ENTRY FOO5 EXPR 1)
  27. (*ALLOC 0)
  28. (*JUMPNOTEQ (LABEL G0004) (REG 1) (QUOTE 1))
  29. (*MOVE (QUOTE ONE) (REG 1))
  30. (*EXIT 0)
  31. (*LBL (LABEL G0004))
  32. (*MOVE (QUOTE NOT-ONE) (REG 1))
  33. (*EXIT 0)
  34. ))
  35. (FLUID (QUOTE (FLU1 FLU2)))
  36. (LAP '(
  37. (*ENTRY FOO6A EXPR 2)
  38. (*ALLOC 0)
  39. (*LAMBIND (REGISTERS (REG 2) (REG 1)) (NONLOCALVARS ($FLUID FLU2) ($FLUID FLU1))
  40. )
  41. (*MOVE ($FLUID FLU2) (REG 3))
  42. (*MOVE ($FLUID FLU1) (REG 2))
  43. (*MOVE (QUOTE BEFORE) (REG 1))
  44. (*LINK LIST3 EXPR 3)
  45. (*LINK PRINT EXPR 1)
  46. (*MOVE (QUOTE 10) ($FLUID FLU1))
  47. (*MOVE (QUOTE 20) ($FLUID FLU2))
  48. (*MOVE ($FLUID FLU2) (REG 3))
  49. (*MOVE ($FLUID FLU1) (REG 2))
  50. (*MOVE (QUOTE AFTER) (REG 1))
  51. (*LINK LIST3 EXPR 3)
  52. (*LINK PRINT EXPR 1)
  53. (*MOVE (QUOTE NIL) (REG 1))
  54. (*FREERSTR (NONLOCALVARS ($FLUID FLU2) ($FLUID FLU1)))
  55. (*EXIT 0)
  56. ))
  57. (LAP '(
  58. (*ENTRY FOO6 EXPR 0)
  59. (*ALLOC 0)
  60. (*MOVE (QUOTE 1) ($FLUID FLU1))
  61. (*MOVE (QUOTE 2) ($FLUID FLU2))
  62. (*MOVE ($FLUID FLU2) (REG 3))
  63. (*MOVE ($FLUID FLU1) (REG 2))
  64. (*MOVE (QUOTE BEFORE) (REG 1))
  65. (*LINK LIST3 EXPR 3)
  66. (*LINK PRINT EXPR 1)
  67. (*MOVE (QUOTE B) (REG 2))
  68. (*MOVE (QUOTE A) (REG 1))
  69. (*LINK FOO6A EXPR 2)
  70. (*MOVE ($FLUID FLU2) (REG 3))
  71. (*MOVE ($FLUID FLU1) (REG 2))
  72. (*MOVE (QUOTE AFTER) (REG 1))
  73. (*LINK LIST3 EXPR 3)
  74. (*LINK PRINT EXPR 1)
  75. (*MOVE (QUOTE NIL) (REG 1))
  76. (*EXIT 0)
  77. ))