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

Incorrect BA files when compiled and run in MinGW #2

Open
tingtron opened this issue Apr 20, 2024 · 2 comments
Open

Incorrect BA files when compiled and run in MinGW #2

tingtron opened this issue Apr 20, 2024 · 2 comments

Comments

@tingtron
Copy link

I compiled the sources in MingW a few different ways (GCC 64, 32-bit).
And also trying to use "w+b" to force the binary mode.
For input .DO files I also tried using both \r\n and \n line separators.

In all cases the generated .BA files are incorrect and not recognized

ok3c.ba is the correct one from the VirtualT (Saved from BASIC to host).

image

Which is rejected by VirtualT "Load file".
And when copied with TS-DOS, and loaded in BASIC, it produces wrong tokens and line numbers:

image

The example .DO is

10 A=1
20 B=A+2
30 PRINTA;B
40 PRINT"Done"
@hackerb9
Copy link
Owner

Thank you trying out 64/32-bit and binary mode. I'd very much like to know why it is failing, but I don't have a Windows box to debug on. I was able to use Github's virtual build host and found that make test shows the same error.

@hackerb9
Copy link
Owner

I believe I have tracked down all the peculiar quirks and abhorrent idiosyncrasies Microsoft requires. I hope v2.0.0 will work for you. Please test it out and let me know. Thanks!

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

2 participants