|CS552 Course Wiki: Spring 2013||Main »
Using the Assembler
In order to test your project, you need to assemble programs to be loaded into memory. To do this, there is a simple assembler provided. It will take source code that looks like the text in figure below and produces two files: An object file and a listing for your reference.
The assembler is located here:
That directory has already been added to your
Say you have a source file names "myfile.asm"; to assemble it, type:
This produces many files, two of the files are: The listing file is called
The assembler always produces a warning that if there are any errors, the output is not valid. This is just a reminder -- this message itself is not an error.
See running the programs in the WISC-SP13 simulator-debugger.
The assembler will also produce 4 files of the form
Assembly programs are written using the semantics outlined in the WISC-SP13 ISA document. C style comments can be used (//). Static data and labels can be used as follows:
|Page last modified on February 23, 2013, visited 1272 times|