Search code examples
assemblymotorola

unknown mnemonic error, compiling with vasmm68k_mot


It can be very, very basic question and noob's mistake, but I just started doing games for Amiga platform, and trying to compile test assembly source file that contains only:

move.b $#FF,D0

with vasmm68k_mot (vasm assembler that I made on my OSX with make CPU=m68k SYNTAX=mot)

but I have compiler error:

error 2 in line 1 of "./test.asm": unknown mnemonic <.b>

As I said, could be I am using wrong syntax, or something more obvious, but I am noob and cannot find any help in the net (could be cause I am asking wrong question).

Any help apreciated.


Solution

  • I wrote an email to the vasm maker Dr. Volker Barthelmann, and here is his response (very quick btw):

    When using Motorola syntax, instructions must not start at the beginning of a line. Otherwise they are treated as labels. Adding a space or tab before should work (and #$FF instead of $#FF)

    I added the tab before instruction and it was compiled.

    Many thanks!