mini-rds-wrs.red 288 B

12345678910111213141516171819202122
  1. % MINI-RDS-WRS.RED
  2. Fluid '(IN!* Out!*);
  3. Procedure RDS N;
  4. If NULL N then RDS 0
  5. else begin scalar K;
  6. K:=IN!*;
  7. IN!*:=N;
  8. Return K
  9. end;
  10. Procedure WRS N;
  11. If NULL N then WRS 1
  12. else begin scalar K;
  13. K:=Out!*;
  14. Out!*:=N;
  15. Return K
  16. end;
  17. End;