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

minor annoyances #7

Open
sverx opened this issue Apr 28, 2020 · 2 comments
Open

minor annoyances #7

sverx opened this issue Apr 28, 2020 · 2 comments

Comments

@sverx
Copy link
Contributor

sverx commented Apr 28, 2020

here's a list of minor annoyances

this doesn't like the parenthesis in the test condition:
.if (\2 & $01) != 0

this doesn't like the fact that the values aren't expressed as constants
.incbin "data/level.bin" skip 16*28 read 16*14

this requires I explicitly write ix+0 inside the parenthesis
ld a,(ix)

@sverx
Copy link
Contributor Author

sverx commented Apr 28, 2020

additional note:

it doesn't like the .IF condition even if written in different way such as:

.if \2 & $01
(won't like the \ )

.if $01 & \2
(won't like the &)

edit: I forgot .IF needs an operator so syntax should be like

.if EXPR operator EXPR

and WLA-DX says

Supported operators are '<', '>', '>=', '<=', '!=' and '=='.

@sverx
Copy link
Contributor Author

sverx commented Apr 29, 2020

just to confirm that both
.incbin "data/level.bin" skip 16*28 read 16*14
and
ld a,(ix)

now works fine. Thanks! 👍

If you could fix the
.if (\2 & $01) != 0
would be great 🥇

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

1 participant