Exemplo n.º 1
0
        public SubroutineAssemblyEmitter()
        {
            _stackHelper = new StackAssemblyHelper();
            _subroutineHelper = new ArithmeticSubroutineAssemblyHelper();
            _translator = new EqualityOperationTranslator();

            ResetSubroutineIndex();
        }
Exemplo n.º 2
0
        public ArithmeticAssemblyEmitter()
        {
            _helper = new StackAssemblyHelper();
            _subroutineEmitter = new SubroutineAssemblyEmitter();

            _includeEqSubroutine = false;
            _includeGtSubroutine = false;
            _includeLtSubroutine = false;
        }
Exemplo n.º 3
0
 public StackAssemblyEmitter()
 {
     _helper = new StackAssemblyHelper();
     _translator = new MemorySegmentTranslator();
 }