Class Assembler

java.lang.Object
  extended by Assembler

public class Assembler
extends java.lang.Object

An assembler for the Larc ISA Converts Larc assembly code into machine code. Note: unlike traditional assembler the machine code is outputted into a text file rather than a binary file.


Constructor Summary
Assembler()
           
 
Method Summary
static void assemble()
          Assemble program.
static void main(java.lang.String[] args)
          Main method
static void printProgram()
          Print out program -- for debugging only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assembler

public Assembler()
Method Detail

main

public static void main(java.lang.String[] args)
Main method

Parameters:
args - command-line arguments

printProgram

public static void printProgram()
Print out program -- for debugging only. Note: this is a good example of how to loop through the program vector and perform a particular task based on whether the next element is an instruction, datum, or label. Note also: this method will not support macro instructions.


assemble

public static void assemble()
Assemble program. MUST BE IMPLEMENTED BY STUDENT FOR LAB.