package cs241e.assignments

import Assembler._
import ProgramRepresentation._
import Transformations._
import cs241e.mips._

object A2 {
  /* As part of Assignment 2, before implementing the methods in this file, first implement the methods in
   * Transformations.scala in the section for Assignment 2.
   */

  /* Registers 1 and 2 hold 32-bit integers (in two's-complement notation). Place the maximum of these integers
   * in register 3, and return.
   */
  lazy val maximum: Seq[Word] = {
    val code = Seq[Code](???)
    eliminateLabels(code)
  }

  /* Registers 1 and 2 hold 32-bit integers (in unsigned integer notation). Place the maximum of these integers
   * in register 3, and return.
   */
  lazy val maximumUnsigned: Seq[Word] = {
    val code = Seq[Code](???)
    eliminateLabels(code)
  }

}