annotate lab4/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
mike@0 1 (* Printing numbers *)
mike@0 2
mike@0 3 begin
mike@0 4 print_num(2); newline()
mike@0 5 end.
mike@0 6
mike@0 7 (*<<
mike@0 8 2
mike@0 9 >>*)
mike@0 10
mike@0 11 (*[[
mike@0 12 @ picoPascal compiler output
mike@0 13 .include "fixup.s"
mike@0 14 .global pmain
mike@0 15
mike@0 16 .text
mike@0 17 pmain:
mike@0 18 mov ip, sp
mike@0 19 stmfd sp!, {r4-r10, fp, ip, lr}
mike@0 20 mov fp, sp
mike@0 21 @ print_num(2); newline()
mike@0 22 mov r0, #2
mike@0 23 bl print_num
mike@0 24 bl newline
mike@0 25 ldmfd fp, {r4-r10, fp, sp, pc}
mike@0 26 .ltorg
mike@0 27
mike@0 28 @ End
mike@0 29 ]]*)