Example #1
0
        private void ExecuteSubroutine(CpuThreadState state, long position)
        {
            state.CurrentTranslator = this;

            do
            {
                if (EnableCpuTrace)
                {
                    CpuTrace?.Invoke(this, new CpuTraceEventArgs(position));
                }

                TranslatedSub subroutine = GetOrTranslateSubroutine(state, position);

                position = subroutine.Execute(state, _memory);
            }while (position != 0 && state.Running);

            state.CurrentTranslator = null;
        }
Example #2
0
 private void ForceAheadOfTimeCompilation(TranslatedSub subroutine)
 {
     subroutine.Execute(_dummyThreadState, null);
 }