public SubroutineAssemblyEmitter()
        {
            _stackHelper = new StackAssemblyHelper();
            _subroutineHelper = new ArithmeticSubroutineAssemblyHelper();
            _translator = new EqualityOperationTranslator();

            ResetSubroutineIndex();
        }
        public ArithmeticAssemblyEmitter()
        {
            _helper = new StackAssemblyHelper();
            _subroutineEmitter = new SubroutineAssemblyEmitter();

            _includeEqSubroutine = false;
            _includeGtSubroutine = false;
            _includeLtSubroutine = false;
        }
Example #3
0
 public StackAssemblyEmitter()
 {
     _helper = new StackAssemblyHelper();
     _translator = new MemorySegmentTranslator();
 }