Jump to content
IGNORED

Atari Assembler Editor - Syntax Error Help


Recommended Posts

Whenever I use the Atari Assembler Editor with Atari 800 WinPlus 4.1, whenever I use the Assembler Editor page, why do I get frequent syntax errors when trying to assemble the code in ASM?

 

EXAMPLE:

10 *=$5000

20 LDA #2

30 .END

ASM'

 

What the above should look like in assembling:

$5000 A9 02

 

Thank you!

 

~Ben

Edited by ColecoFan1981
Link to comment
Share on other sites

With the AsmEd cart as well as Mac-65 you have rules re spacing and placement within a line for comments, directives, machine instructions.

 

Comment at start of line uses ;

For a label you have one space after the line #

For an instruction or directive you have two spaces after the line #

For an instruction after a label you only need one space.

In most assemblers, comments allowed after instructions, usually just one space required.

 

e.g. for all this

 

10  *=$5000
20  LDA #2
30 ; This is a comment on it's own line
40  STA $6000 This is a comment after an instrucition
50  .OPT LIST This is a comment after a directive
60 LABEL1 LDA #3
70 LABEL2 .OPT NOLIST
80  .END
  • Like 1
Link to comment
Share on other sites

 

With the AsmEd cart as well as Mac-65 you have rules re spacing and placement within a line for comments, directives, machine instructions.

 

Comment at start of line uses ;

For a label you have one space after the line #

For an instruction or directive you have two spaces after the line #

For an instruction after a label you only need one space.

In most assemblers, comments allowed after instructions, usually just one space required.

 

e.g. for all this

10  *=$5000
20  LDA #2
30 ; This is a comment on it's own line
40  STA $6000 This is a comment after an instrucition
50  .OPT LIST This is a comment after a directive
60 LABEL1 LDA #3
70 LABEL2 .OPT NOLIST
80  .END

Thank you!

 

~Ben

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...