yuv422 / z80editor

Z80 eclipse editor targeting WLA-DX assembler
GNU General Public License v2.0
9 stars 1 forks source link

minor annoyances #7

Open sverx opened 4 years ago

sverx commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

now works fine. Thanks! :+1:

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