ColecoFan1981 Posted March 18, 2015 Share Posted March 18, 2015 (edited) 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 March 18, 2015 by ColecoFan1981 Quote Link to comment Share on other sites More sharing options...
Rybags Posted March 18, 2015 Share Posted March 18, 2015 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 1 Quote Link to comment Share on other sites More sharing options...
ColecoFan1981 Posted March 18, 2015 Author Share Posted March 18, 2015 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 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.