annotate ppc/test/print5.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 begin
mike@0 2 print_string("five"); newline()
mike@0 3 end.
mike@0 4
mike@0 5 (*<<
mike@0 6 five
mike@0 7 >>*)
mike@0 8
mike@0 9 (*[[
mike@0 10 MODULE Main 0 0
mike@0 11 IMPORT Lib 0
mike@0 12 ENDHDR
mike@0 13
mike@0 14 PROC MAIN 0 0 0
mike@0 15 ! print_string("five"); newline()
mike@0 16 CONST 4
mike@0 17 GLOBAL g1
mike@0 18 CONST 0
mike@0 19 GLOBAL lib.print_string
mike@0 20 PCALL 2
mike@0 21 CONST 0
mike@0 22 GLOBAL lib.newline
mike@0 23 PCALL 0
mike@0 24 RETURN
mike@0 25 END
mike@0 26
mike@0 27 ! String "five"
mike@0 28 DEFINE g1
mike@0 29 STRING 6669766500
mike@0 30
mike@0 31 ! End
mike@0 32 ]]*)