Jump to content

Photo

Atari Assembler Editor Cartridge and inline comments


4 replies to this topic

#1 morelenmir OFFLINE  

morelenmir

    Stargunner

  • 1,544 posts
  • Location:West Yorkshire, Great Britain

Posted Thu Feb 9, 2012 3:13 PM

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?

#2 Rybags OFFLINE  

Rybags

    Quadrunner

  • 15,907 posts
  • Location:Australia

Posted Thu Feb 9, 2012 7:01 PM

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

#3 morelenmir OFFLINE  

morelenmir

    Stargunner

  • Topic Starter
  • 1,544 posts
  • Location:West Yorkshire, Great Britain

Posted Thu Feb 9, 2012 11:05 PM

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!

#4 Rybags OFFLINE  

Rybags

    Quadrunner

  • 15,907 posts
  • Location:Australia

Posted Thu Feb 9, 2012 11:09 PM

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

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

#5 morelenmir OFFLINE  

morelenmir

    Stargunner

  • Topic Starter
  • 1,544 posts
  • Location:West Yorkshire, Great Britain

Posted Fri Feb 10, 2012 11:59 AM

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.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users