Jump to content
Sign in to follow this  
morelenmir

Atari Assembler Editor Cartridge and inline comments

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

I prefer to leave labels with nothing else on the line anyway.

 

It makes it easier to read and easier to insert new code.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...