Advertisement.

EnchantedLearning.com is a user-supported site.
As a bonus, site members have access to a banner-ad-free version of the site, with print-friendly pages.
Click here to learn more.

ad
(Already a member? Click here.)


SPARC Assembly-Language Syntax

For more, see: SPARC at Enchanted Learning

Assembly language is much more line-oriented than the structured high-level languages you are probably more used to. An assembly-language program is a sequence of individual lines, unlike a high-level language program, which is best thought of in terms of structured statements.

There are four types of assembly language lines: label definition lines, instruction lines, directive lines and blank lines.

In addition, you can place a comment at the end of any line by writing an exclamation mark "!" followed by the comment. Everything from the "!" up to the end of the line is ignored by the assembler. Notice that, since a blank line is a legal assembly language line, you can have a line consisting entirely of a comment and nothing else.

The assembler also recognizes C-style comments bracketed by /* and */. This can be useful for function prologues and the like.


Copyright 1998-1999 Enchanted Learning Software.



Enchanted Learning Search

Search the Enchanted Learning website for:



Advertisement.



Advertisement.



Advertisement.