You can run a program using pdn <program>
and you can turn it into an executable using pdnd <program> <output>
:println
sout !
cout #10
ret
:main
push " Hello, world! "
jump :println
- Println
- Pops the top of the stack and outptus it
- Outputs ASCII 10 aka newline
- Returns
- main
- Pushes the string "Hello, world!" to the top of the stack
- Jumps to the println function