Open undisbeliever opened 5 years ago
This is correct in reporting these variable declarations as erroneous. wiz needs a static keyword to declare non-local vars (will try to add), and local vars without designated storage or an explicit addresss are not supported yet (another task for stack frames). However, other usages of in { ... }
blocks that can change the ROM bank should be forbidden.
I also wonder if the rules around in
should change to allow entering multiple banks at the same time, and use the first bank compatible with the declaration. So eg. enter ROM + RAM bank in same in
block and then the compiler will use one bank for code, the other for vars.
Edit: ugh hit submit while typing on phone, added more notes, bug should remain open!
Wiz allows an
in
block to exist inside a function. Is this expected behaviour?I can understand if the intention is for local variables like the example below, but the code below does not compile.