annotate lab4/test/nop.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 (* The empty program *)
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
2
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
3 begin end.
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
4
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
5 (*[[
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
6 @ picoPascal compiler output
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
7 .include "fixup.s"
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
8 .global pmain
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
9
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
10 .text
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
11 pmain:
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
12 mov ip, sp
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
13 stmfd sp!, {r4-r10, fp, ip, lr}
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
14 mov fp, sp
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
15 ldmfd fp, {r4-r10, fp, sp, pc}
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
16 .ltorg
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
17
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
18 @ End
Mike Spivey <mike@cs.ox.ac.uk>
parents:
diff changeset
19 ]]*)