+ Correct docs/project/roles_responsibilities.pod location.
[parrot.git] / examples / pasm / hello.pasm
blob385cfd32587af10f677441eb6955ef9ddf674b7c
1 # $Id$
3 =head1 NAME
5 hello.pasm - Hello World
7 =head1 DESCRIPTION
9 This is also used in the top Makefile,
10 for showing how to create an executable from PASM.
12 =cut
14     # Get @ARGV as a ResizableStringArray
15     get_params "0", P0
17     # Discard the program name
18     shift S0, P0
20     # Look for additional args
21     if P0, FOUND_EXTRA_ARG
22         print "Hello World\n"
23         end
25 FOUND_EXTRA_ARG:
26     shift S1, P0
27     print "Hello "
28     print S1
29     print "\n"
30     end