|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
Asm | Entry point to the assembler. |
AsmData | An abstract class representing literal data in an assembly file. |
AsmDataSpace | Assembly file space directive. |
AsmDataString | Assembly file string as data. |
AsmDataWord | Assembly file word as data. |
AsmFile | Represents a file of assembly code. |
AsmIns | Represents a single assembly instruction. |
Linker | The Linker takes multiple object files and produces a single executable. |
Module | Used to represent a single object file. |
The Cebollita assembler implements a subset of standard MIPS assembly language. The assembler is somewhat table driven, so the actual set of MIPS instructions that it handles can vary. However, here is the bare minimum set of instructions it can and does encode:
This will create a file called file.o:
java asm.parser file.sPassing the --version flag will print out version info.
Data: The following data directives are the only ones recognized:
[label] .space [bytes] [label] .word [value] [label] .asciiz [string]Because of limitations of the linker, labels can ONLY be used in conjunction with BEQ, BNE, BGTZ, BLTZ, LW, SW, LB, SB, J, JAL, ADDI, ORI.
This will link the two provided files:
java asm.Linker file1.o file2.oThe linker understand the following flag:
This will spit out information about an object file:
java asm.Module file1.o
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |