about summary refs log blame commit diff stats
path: root/subx/examples/ex6.k2
blob: d9b54dd49a231c0efcd28ca2d846d3671eaae133 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                           
var size : int = 14
var x : (array character) = "hello, world!"

fn main [
  call write 1/stdout, x, size
  call exit, 0
]

fn exit x : int [
  code/EBX <- copy x
  code/EAX <- copy 1/exit
  syscall
]