Closed hellow554 closed 10 months ago
fixed an asar_2_beta now (for any 3-letter labels that are not valid instructions). however, lda = 123
still gives an invalid number error (this used to work in 1.9). i'm not sure whether this should be allowed, given that this creates somewhat nasty ambiguities, especially if we want to make asar even less whitespace-sensitive in the future. and well, this might look somewhat misleading anyways. so i'm currently leaning towards keeping this banned.
Yes, that would be a good idea.
Maybe reporting an error like: "can't redefine opcode lda
" or similar.
well it's not redefining an opcode, it's creating a label called "lda". you can still do that like this:
lda:
lda lda
which is still valid. whether you should do that is a different question, but i don't think banning label names from coinciding with any instruction names is a good idea either, especially since the set of valid mnemonics depends on the current architecture, and spc700 and superfx include instructions like "stop", "sleep", or "loop", which i could totally see as being valid label names.
none of the other devs seemed to object to lda = 123 being an error, so closing this as completed.
The following code won't get accepted anymore:
Commit that introduces this bug: baac3ffc0f8c511238c67e04a25b0d784a527c0b Ping @p4plus2 : Can you take a look at it, please?
It was originally detected because of this code: