mirror of
https://github.com/irmen/prog8.git
synced 2024-08-19 14:29:17 +00:00
31 lines
343 B
Lua
31 lines
343 B
Lua
%import c64utils
|
|
|
|
~ main {
|
|
|
|
sub start() {
|
|
|
|
foo(1)
|
|
foo2(20)
|
|
bar(2,3)
|
|
baz(3333)
|
|
baz(-3333)
|
|
|
|
}
|
|
|
|
sub foo(ubyte arg) {
|
|
A=arg
|
|
}
|
|
|
|
sub foo2(byte arg) {
|
|
A=33
|
|
}
|
|
|
|
sub bar(ubyte arg1, ubyte arg2) {
|
|
A=arg1
|
|
}
|
|
|
|
sub baz(word arg) {
|
|
A=lsb(arg)
|
|
}
|
|
}
|