Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GOSUB #1

Open
fogus opened this issue Apr 17, 2009 · 0 comments
Open

Add GOSUB #1

fogus opened this issue Apr 17, 2009 · 0 comments

Comments

@fogus
Copy link
Owner

fogus commented Apr 17, 2009

Baysick should support subroutines. They would work something like this:

```
10 PRINT “Subroutine test”
20 LET (‘a := 0)
30 PRINT "Variable is " % ’a // prints 0
40 GOSUB inc
50 PRINT "Variable is " % ’a // prints 1
60 SUB “inc”
70 LET (’a := ’a + 1)
80 RETURN
90 GOSUB 60
100 PRINT "Variable is " % ’a // prints 2
110 END
```

-m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant