import Location; import Register; /** * The stack pointer for AAAL, the amazingly abstract assembly * language. Get the stack poitner with StackPointer.get(). * * @author Samuel A. Rebelsky * @version 1.0 of April 2001 */ public class StackPointer extends Register; { // +--------+------------------------------------------------------------ // | Fields | // +--------+ /** The one register that is the stack pointer. */ protected static Register sp = null; // +----------------+---------------------------------------------------- // | Static Methods | // +----------------+ /** * Get the "one" stack pointer. */ public static Register get() { } // get() /** * Print the register. */ public print(PrintWriter out) { out.print("%" + this.name); } // print(PrintWriter) } // class Register