Closed Wuerfel21 closed 1 year ago
The getbrk d
one I can reproduce (and it's easy to at least add a warning for this). bitl pa, pob wc
gives me an error: modifier wc not valid for bitl
.
Remember, I'm an idiot, so there's a large possibility I messed up the testing
Though I think I can pull out a list of instructions with funny flags, so I guess I'll go back and test them all
Turns out I'm not stupid, I just tested it in a file with a spin main function. Unreferenced DAT sections are never compiled, etc, etc.
Probably not-a-bug.
But GETBRK without flags should be an error because that encodes COGBRK.
I've changed the missing wcz on GETBRK from a warning to an error, and did the same to modcz.
MODCZ you can actually encode without C/Z flags (completely pointless, but whatever...)
Another one: You can't have WMLONG with an immediate D, that also doesn't error.
Certain instruction/flag combinations are impossible (such as
BITL D,S WC
orBITL D,S WZ
orGETBRK D '(no flags)
, but flexspin doesn't error out when trying to assemble these.