EASy68K
http://easy68k.com/EASy68Kforum/

Invalid syntax with a proven working HELLO WORLD
http://easy68k.com/EASy68Kforum/viewtopic.php?f=5&t=1601
Page 1 of 1

Author:  StormEagle [ Sun Oct 01, 2017 12:43 pm ]
Post subject:  Invalid syntax with a proven working HELLO WORLD

Hi, this is similar to a problem a few threads down on this page, however, with slightly different parameters.

I want to learn to code 68000 for Sega Mega Drive. This is my first proper go at assembler, and according to what I'm reading the first thing to do is test the assembler, which would also help me to understand the structure of an instruction.

I've downloaded the code from here: https://pastebin.com/kJC99PA7

When I hit the assemble button, I get Invalid syntax for line 6 and then for just about ever other line involving dc and move commands. You'll see from the code that these lines do contain tab/spaces before the command and the operands (As an aside, I note that hitting tab in EASy68K inserts three spaces rather than an actual tab). From tutorials that I'm reading, these lines are structured correctly.

Can anyone help a total newbie understand what's going on here, so I can actually learn something from this process? Thanks!

Author:  profkelly [ Sun Oct 01, 2017 5:18 pm ]
Post subject:  Re: Invalid syntax with a proven working HELLO WORLD

The syntax used in that source is not compatible with EASy68K.
Go to Help/Assembler Commands/Operators for a list of EASy68K operators, or refer to the Motorola 68000 Assembler Reference manual.
http://www.easy68k.com/paulrsm/doc/m68kmasm.txt

Author:  StormEagle [ Sun Oct 01, 2017 9:16 pm ]
Post subject:  Re: Invalid syntax with a proven working HELLO WORLD

This source was constructed for a different assembler.
So it looks like I need to use $ instead of 0x for addresses, and ' instead of " for ASCII instructions.
Thanks!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/