EgonOlsen71 / basicv2

A Commodore (CBM) BASIC V2 interpreter/compiler written in Java
https://egonolsen71.github.io/basicv2/
The Unlicense
84 stars 15 forks source link

Just cleanup #15

Closed ciplogic closed 5 years ago

ciplogic commented 5 years ago

My work on Gosub inliner is harder than I was expecting (especially because of clonning), but this code is a nice cleanup to add later more cleanup passes on PCode.

EgonOlsen71 commented 5 years ago

The pcode optimizer was enabled by default in CompilerConfig, if reverted that to false again.

Apart from that, it causes a problem when running the TransformerTest (it's currently limited to testing some funny sprite stuff that I've worked on), because it removes the T from a NEXT:

POKE 49152+N,Q:NEX:DIM PW(8),MA(8)

ciplogic commented 5 years ago

I will look this evening.

Thank you for help testing the code!

ciplogic commented 5 years ago

May you give to me the .bas file? I didn't find which one are you referring?

You can send me also to email (ciprian.mustiata at gmail.com )

EgonOlsen71 commented 5 years ago

Should be this one: src\test\resources\transform\hidden.bas

ciplogic commented 5 years ago

Thank you! I will look into it tomorrow as this evening I will be busy