annotate ppc/test/print.p @ 0:bfdcc3820b32

Basis
author Mike Spivey <mike@cs.ox.ac.uk>
date Thu, 05 Oct 2017 08:04:15 +0100
parents
children
rev   line source
0
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
1 (* print.p *)
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
2
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
3 begin
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
4 print_num(2); newline()
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
5 end.
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
6
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
7 (*<<
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
8 2
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
9 >>*)
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
10
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
11 (*[[
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
12 MODULE Main 0 0
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
13 IMPORT Lib 0
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
14 ENDHDR
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
15
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
16 PROC MAIN 0 0 0
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
17 ! print_num(2); newline()
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
18 CONST 2
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
19 CONST 0
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
20 GLOBAL lib.print_num
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
21 PCALL 1
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
22 CONST 0
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
23 GLOBAL lib.newline
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
24 PCALL 0
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
25 RETURN
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
26 END
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
27
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
28 ! End
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
29 ]]*)