c64jasm icon indicating copy to clipboard operation
c64jasm copied to clipboard

Else statement syntax unclear

Open micheldebree opened this issue 2 years ago • 0 comments

If I don't use the right syntax, I get a cryptic error. There is no example on the site of the right syntax.

Works:

!if (debugging) {
  lda #0
} else {
  lda #2
}

Fails:

!if (debugging) {
  lda #0
} 
else {
  lda #2 ; line 76
}

Error test.asm|76 col 7| error: Syntax error: Expected ":" but "#" found.

I would expect either for both statements to work, or have a clear message about what exactly I am doing wrong.

micheldebree avatar Jan 13 '23 09:01 micheldebree