bobbimanners / EightBall

The Eight Bit Algorithmic Language for Apple II, Commodore 64 and VIC20
GNU General Public License v3.0
19 stars 3 forks source link

Way to pass string literals as argument #24

Open bobbimanners opened 6 years ago

bobbimanners commented 6 years ago

This would be nice:

call foo("Hello")
end
sub foo(byte s[])
 pr.str s; pr.nl
endsub

One fairly easy way to implement this:

If we implement this, we can probably get rid of the PRMSG VM instruction and the pr.msg statement, since pr.str "xxxx" should work.