Comments (6)
Yes, you are right. That was a copy and paste issue. Should be fixed now. The JAR is new as well, I hope it includes the address bytes fix now.
from basicv2.
Interesting...I'm not sure if this is applicable in all cases, though. Because Mospeed's runtime uses 0 values with a dirty mantissa in some cases. But it might not affect this...I'll take a look at it.
from basicv2.
I've added it. The implementation is slightly different from your suggestion, but it's basically the same thing. I also had to modify the runtime to make three routines that were allowing for a dirty mantissa to set the whole FAC to zero instead. I hope this covers all edge cases. Performance wise, it depends if this helps or not. A special test case with 3 IFs of which 2 could be optimized improved by around 8%.
from basicv2.
is this PR in the .jar?
from basicv2.
It should be. There might not trigger in all cases though.
from basicv2.
(ok, but I think the other PR about the addressheader
is not in the JAR because I get the old command line help message).
Regarding this one, I noticed what could be an issue: the label dceloop1
is generated twice
20 A=8:A=A+1
30 IF A=8 THEN PRINT
31 IF A<>8 THEN PRINT
compiled:
LINE_30:
...
dceloop1:
...
BPL dceloop1
...
LINE_31:
...
dceloop1:
...
BPL dceloop1
But the label is incremented correctly if line 31 is changed into IF A=8 ...
from basicv2.
Related Issues (20)
- IndexOutOfBoundsException thrown in Integer Pass 1 HOT 2
- Interpreter: if condition wrong evaluation HOT 5
- Interpreter: Enhance compatibility for Robins new favourite C64 One-Liner HOT 8
- BasicShell: no INPUT for numeric variable possible HOT 2
- Is PI supported ? HOT 11
- Console Support: add control codes for lower/upper case HOT 8
- BasicShell: Wrong output when PRINT with comma HOT 5
- Console: Wrong output when PRINT with comma HOT 2
- INPUT#/PRINT# problems when using for keyboard/screen HOT 1
- INPUT BUG: Workaround with SHIFT+SPACE and Controlcodes for Cursor movement doesn't work HOT 5
- Loading PRG files works only with compiler HOT 6
- GUI has two different sizes HOT 10
- BasicShell: no run with linenumber HOT 5
- Error compiling: Failed to run optimizer! HOT 3
- TAB function/keyword outside of output functions is being recognized. (C64 BASIC difference) HOT 5
- Any suggestions for debugging a '?illegal quantity error in 0' error? HOT 9
- Add linenumer if there is a SYNTAX ERROR HOT 5
- C64 crashes with blue screen HOT 11
- Code with integers is slower than with real variables HOT 7
- Support keyword abbreviations HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basicv2.