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

An interesting Edit Bug #90

Closed
mdavidjohnson opened this issue Jan 5, 2022 · 8 comments
Closed

An interesting Edit Bug #90

mdavidjohnson opened this issue Jan 5, 2022 · 8 comments

Comments

@mdavidjohnson
Copy link

I have found what appears to be a rather interesting bug in VCC.

Attached is my (somewhat lengthy) MULTIPLY.BAS as an ASCII text file.

I SELECT ALL and then CTRL-C in my text editor and then go to VCC and:

Edit|Paste BASIC Code (with NEW)

When I then "RUN" I get:

?NF ERROR IN 30130

or sometimes at 30060.

Upon a LIST 29000-30130, I discover that several lines are missing from the listing; specifically (at least) Lines 29910-29940, 29970-30010, and 30040-30110.

I suspect this error may be caused by the length of my code, but I'm not exactly sure how or why.

I would appreciate your thoughts on this.

Additional note: I sent this direct to Bill Pierce with MULTIPLY.BAS attached. The file exhibited some strange behavior which I think may have been caused by sending it via Microsoft Outlook. I have attached its MULTIPLY.txt equivalent (both are actually the same plain ASCII text file despite the difference in name).
MULTIPLY.txt

@jimrye
Copy link
Contributor

jimrye commented Jan 6, 2022

Hi David, out of curiosity, could you try turning up the overclocking to, say, 12 MHz and try the paste again? If that makes a difference, it'll give us an idea of what needs to be adjusted.
-Jim

@mdavidjohnson
Copy link
Author

mdavidjohnson commented Jan 6, 2022 via email

@mdavidjohnson
Copy link
Author

mdavidjohnson commented Jan 6, 2022 via email

@mdavidjohnson
Copy link
Author

mdavidjohnson commented Jan 6, 2022 via email

@jimrye
Copy link
Contributor

jimrye commented Jan 6, 2022

Hi David, thanks, I'll see if I can reproduce the problem this weekend. It sounds like a problem I was seeing where certain tokens, for whatever reason, take more CPU cycles to enter. Looks like I might have to slow down the paste function some.
-Jim

@jimrye
Copy link
Contributor

jimrye commented Jan 6, 2022

Oh, I see. As the memory starts to get full, it takes longer to enter new lines. I started to notice problems around line 29000. But if I enter 'NEW' and then paste that same section again, it works fine. This is a good test, thanks. I'll see if I can come up with a solution for the next release... hopefully without slowing it down too much.
-Jim

@jimrye
Copy link
Contributor

jimrye commented Jan 8, 2022

Hi David, I think I have it fixed. As the memory fills up on a long program, it just needs a little more time to process when it detects a carriage return. I'm able to paste in both versions of your program, with no missing lines. It still gets the Out of Memory error when it hits the DIM statement, but the splash screen works fine. The fix should be in the next release.
-Jim

@ejaquay
Copy link
Contributor

ejaquay commented Jun 22, 2024

fix is in commit 595aa05

@ejaquay ejaquay closed this as completed Jun 22, 2024
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

3 participants