morelenmir #1 Posted February 9, 2012 For some reason I have found it is impossible to supply an inline comment for a line which only has a label. For instance: 280 OSRC ;OPEN SCREEN ROUTINE This will generate an error six. The only way I can get the thing to assemble properly is if I include a dummy op-code: 280 OSRC NOP ;OPEN SCREEN ROUTINE I have tried adding extra spaces for the non-existent op-code and operand, but it still does not assemble. Am I missing something obvious? Quote Share this post Link to post Share on other sites
Rybags #2 Posted February 10, 2012 Seems it's a bug in the assembler. If you put a directive after the label, you can get around it. e.g. 280 OSRC .OPT LIST ; Comment Quote Share this post Link to post Share on other sites
morelenmir #3 Posted February 10, 2012 I think adding a directive won't increase the object code length? I tried with NOP, but that added an extra byte which was the very devil to debug! Quote Share this post Link to post Share on other sites
Rybags #4 Posted February 10, 2012 I prefer to leave labels with nothing else on the line anyway. It makes it easier to read and easier to insert new code. Quote Share this post Link to post Share on other sites
morelenmir #5 Posted February 10, 2012 I agree rybags. I am working through the 'Atari Roots' tutorials and that fellow constant adds notes after mnemonics. I think I shall add an extra line to hold the note text in future. Quote Share this post Link to post Share on other sites