repo.or.cz
/
voodoo-lang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
set version to 1.1.4
[voodoo-lang.git]
/
test
/
labels.voo
blob
1b4a69447ef582d7f2d33944ef2439c6652654b8
1
# Test using labels.
2
3
section code
4
import exit puts
5
6
align
7
_print_foo:
8
call puts _foo
9
call exit 0
10
11
align
12
_print_1:
13
call puts _\x31
14
goto _print_foo
15
16
section data
17
18
_\x31: string "1\x00"
19
_foo: string "foo\x00"
20
21
22
section functions
23
export main
24
25
align
26
_do_main:
27
function argc argv
28
goto _print_1
29
return 2
30
end function
31
32
align
33
main:
34
function argc argv
35
call _do_main argc argv
36
return 1
37
end function