-
Notifications
You must be signed in to change notification settings - Fork 40
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
let expressions error #147
Comments
I am also getting this problem https://github.com/MikeDX/pitfall-wiz My pitfall wiz seems to be broken now. Apparently I can't assign something like
where vcs.timer.value is from:
Am I missing something? Did "let" change, or can i define a macro like this so that INTIM resolves to vcs.timer.value in this way
|
Sorry for the delay on responding here. Things are currently on hiatus while I work to rewrite Wiz. There was a change more recently to make There's a few alternative solutions that should work: Option 1: You can put an explicit address
Option 2: You can write * (also called "designated storage" in some parts of the compiler, but this name is a bit confusing and I want to retire it eventually)
Option 3: You can use a
Future Option (Not implemented): On the roadmap for the in-progress Wiz rewrite, I want to introduce a
Note that due to a current quirk with However, option 1 can be used for
Options 1 + 2 can also be used to make convenient local names for static vars and registers. Finally, option 2 works for parameters + return values in function signatures. Hope that helps! Let me know if you have further questions. |
After updating wiz recently, one of my projects now fails to build with a let expression error.
Minimal repro:
in ram
{
var g_entity_data_0 : [u16 ; 16];
}; // ram.
let g_player_action = g_entity_data_0[0];
in prg
{
#[mem16, idx16]
func test()
{
aa = g_player_action;
}
} // prg
The text was updated successfully, but these errors were encountered: