Jump to content

Category:68000 Assembly: Difference between revisions

m
Line 26:
How you write the source code depends on your assembler and the syntax it uses. This page is written using Motorola syntax but there is also Milo syntax which has different conventions.
 
How you go about defining numbers or text in your code varies wildly between assemblers. I'm using VASM and these are the rules I have to follow, but your assembler may be different.
The following represent the Motorola syntax rules for code statements only (data blocks follow different rules!)
 
 
* A number with a # in front represents a constant, literal value. For example, the 3 in <code>MOVE.B #3,D0</code> represents the number 3.
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.