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

Running program in Emulator from VSCode problem when using an 'autoexec' file. #73

Open
jwpyle3 opened this issue Mar 22, 2024 · 3 comments

Comments

@jwpyle3
Copy link

jwpyle3 commented Mar 22, 2024

I've been trying our VSCode to create some simple programs. When I hit CMD+ SHIFT + B and RETURN to run the program in the emulator, it loads the emulator and if I an using an 'autoexec' file I get a syntax error:

Ok
RUN "autoexec
Ok
"hello.aqx"
Syntax error

If I disable the 'autoexec' file then I get this:

Ok
run"hello.aqx"
Hello World!
Ok

Looks like the 'run' is being cut off when the 'autoexec' is executed.

@1stage
Copy link
Collaborator

1stage commented Oct 22, 2024

Can you try again in the newest version of the OS/pB?

Also, please list the contents of your autoexec here so we can see them.

(Sorry for the delay. We're back-logged, but you knew that...)

@fvdhoef
Copy link
Owner

fvdhoef commented Oct 23, 2024

The problem here is that plusBASIC clears the input buffer. So you need to delay your command input until plusBASIC is done processing. If you have an autoexec this will take longer. You can adjust your Makefile to add additional \x1D (delay 500ms) before your RUN command.

@RevCurtisP
Copy link
Collaborator

As of v0.23o, if you have SET BREAK OFF as the first statement of your autoexec file, then adding three spaces before the RUN command in your Makefile should fix the issue,

For example

aquarius-emu - t " run progname.bas"

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

4 participants