morelenmir Posted February 9, 2012 Share 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 Link to comment Share on other sites More sharing options...
Rybags Posted February 10, 2012 Share 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 Link to comment Share on other sites More sharing options...
morelenmir Posted February 10, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Rybags Posted February 10, 2012 Share 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 Link to comment Share on other sites More sharing options...
morelenmir Posted February 10, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.