Debian Codegraph @

cpupane.cpp

raw symbols SCIP
1 // File: cpupane.cppcxx . . $ `<file>/cpupane.cpp`/
2 /*
3 Pep8-1 is a virtual machine for writing machine language and assembly
4 language programs.
5
6 Copyright (C) 2009 J. Stanley Warford, Pepperdine University
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21 #include <QMessageBox>
22 #include <QKeyEvent>
23 // #include <QSound>
24 #include "cpupane.h"cxx . . $ `<file>/cpupane.h`/
25 #include "ui_cpupane.h"cxx . . $ `<file>/ui_cpupane.h`/
26 #include "sim.h"cxx . . $ `<file>/sim.h`/
27 #include "pep.h"cxx . . $ `<file>/pep.h`/
28 #include <QtGlobal>
29
30 CpuPanecxx . . $ CpuPane#::CpuPanecxx . . $ CpuPane#CpuPane(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent) :
31 QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(parent),
32 uicxx . . $ CpuPane#ui.(new Uicxx . . $ Ui/::CpuPanecxx . . $ Ui/CpuPane#)
33 {
34 uicxx . . $ CpuPane#ui.->setupUicxx . . $ Ui_CpuPane#setupUi(108f35f7aa7f3cf9).(this);
35
36 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(singleStepButton()));
37 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CpuPane#ui.->resumePushButtoncxx . . $ Ui_CpuPane#resumePushButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(resumeButtonClicked()));
38
39 interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag. = false;
40 clearCpucxx . . $ CpuPane#clearCpu(49f6e7a06ebc5aa8).();
41
42 if (Pepcxx . . $ Pep#::getSystemcxx . . $ Pep#getSystem(4365c3963150523e).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "Mac") {
43 uicxx . . $ CpuPane#ui.->cpuLabelcxx . . $ Ui_CpuPane#cpuLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont., Pepcxx . . $ Pep#::labelFontSizecxx . . $ Pep#labelFontSize.));
44 uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
45
46 uicxx . . $ CpuPane#ui.->accLabelcxx . . $ Ui_CpuPane#accLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
47 uicxx . . $ CpuPane#ui.->xLabelcxx . . $ Ui_CpuPane#xLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
48 uicxx . . $ CpuPane#ui.->spLabelcxx . . $ Ui_CpuPane#spLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
49 uicxx . . $ CpuPane#ui.->pcLabelcxx . . $ Ui_CpuPane#pcLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
50 uicxx . . $ CpuPane#ui.->instrSpecLabelcxx . . $ Ui_CpuPane#instrSpecLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
51 uicxx . . $ CpuPane#ui.->oprndSpecLabelcxx . . $ Ui_CpuPane#oprndSpecLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
52 uicxx . . $ CpuPane#ui.->oprndLabelcxx . . $ Ui_CpuPane#oprndLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
53 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
54 uicxx . . $ CpuPane#ui.->resumePushButtoncxx . . $ Ui_CpuPane#resumePushButton.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
55
56 uicxx . . $ CpuPane#ui.->pepNLabelcxx . . $ Ui_CpuPane#pepNLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
57 uicxx . . $ CpuPane#ui.->pepZLabelcxx . . $ Ui_CpuPane#pepZLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
58 uicxx . . $ CpuPane#ui.->pepVLabelcxx . . $ Ui_CpuPane#pepVLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
59 uicxx . . $ CpuPane#ui.->pepCLabelcxx . . $ Ui_CpuPane#pepCLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
60
61 uicxx . . $ CpuPane#ui.->nLabelcxx . . $ Ui_CpuPane#nLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
62 uicxx . . $ CpuPane#ui.->zLabelcxx . . $ Ui_CpuPane#zLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
63 uicxx . . $ CpuPane#ui.->vLabelcxx . . $ Ui_CpuPane#vLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
64 uicxx . . $ CpuPane#ui.->cLabelcxx . . $ Ui_CpuPane#cLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
65
66 uicxx . . $ CpuPane#ui.->accHexLabelcxx . . $ Ui_CpuPane#accHexLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
67 uicxx . . $ CpuPane#ui.->accDecLabelcxx . . $ Ui_CpuPane#accDecLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
68
69 uicxx . . $ CpuPane#ui.->xHexLabelcxx . . $ Ui_CpuPane#xHexLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
70 uicxx . . $ CpuPane#ui.->xDecLabelcxx . . $ Ui_CpuPane#xDecLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
71
72 uicxx . . $ CpuPane#ui.->spHexLabelcxx . . $ Ui_CpuPane#spHexLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
73 uicxx . . $ CpuPane#ui.->spDecLabelcxx . . $ Ui_CpuPane#spDecLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
74
75 uicxx . . $ CpuPane#ui.->pcHexLabelcxx . . $ Ui_CpuPane#pcHexLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
76 uicxx . . $ CpuPane#ui.->pcDecLabelcxx . . $ Ui_CpuPane#pcDecLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
77
78 uicxx . . $ CpuPane#ui.->instrSpecBinLabelcxx . . $ Ui_CpuPane#instrSpecBinLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
79 uicxx . . $ CpuPane#ui.->instrSpecMnemonLabelcxx . . $ Ui_CpuPane#instrSpecMnemonLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
80
81 uicxx . . $ CpuPane#ui.->oprndSpecHexLabelcxx . . $ Ui_CpuPane#oprndSpecHexLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
82 uicxx . . $ CpuPane#ui.->oprndSpecDecLabelcxx . . $ Ui_CpuPane#oprndSpecDecLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
83 uicxx . . $ CpuPane#ui.->oprndHexLabelcxx . . $ Ui_CpuPane#oprndHexLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
84 uicxx . . $ CpuPane#ui.->oprndDecLabelcxx . . $ Ui_CpuPane#oprndDecLabel.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Pepcxx . . $ Pep#::labelFontcxx . . $ Pep#labelFont.));
85 }
86 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
87 }
88
89 CpuPanecxx . . $ CpuPane#::~cxx . . $ CpuPane#`~CpuPane`(ced63f7c635d850d).CpuPanecxx . . $ CpuPane#()
90 {
91 delete uicxx . . $ CpuPane#ui.;
92 }
93
94 void CpuPanecxx . . $ CpuPane#::updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).() {
95 Enucxx . . $ Enu/::EAddrModecxx . . $ Enu/EAddrMode# addrMode = Pepcxx . . $ Pep#::decodeAddrModecxx . . $ Pep#decodeAddrMode.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.];
96
97 uicxx . . $ CpuPane#ui.->nLabelcxx . . $ Ui_CpuPane#nLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(Simcxx . . $ QString#QString(85c52e162fed56f9).::nBitcxx . . $ Sim#nBit. ? "1" : "0");
98 uicxx . . $ CpuPane#ui.->zLabelcxx . . $ Ui_CpuPane#zLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(Simcxx . . $ QString#QString(85c52e162fed56f9).::zBitcxx . . $ Sim#zBit. ? "1" : "0");
99 uicxx . . $ CpuPane#ui.->vLabelcxx . . $ Ui_CpuPane#vLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(Simcxx . . $ QString#QString(85c52e162fed56f9).::vBitcxx . . $ Sim#vBit. ? "1" : "0");
100 uicxx . . $ CpuPane#ui.->cLabelcxx . . $ Ui_CpuPane#cLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(Simcxx . . $ QString#QString(85c52e162fed56f9).::cBitcxx . . $ Sim#cBit. ? "1" : "0");
101
102 uicxx . . $ CpuPane#ui.->accHexLabelcxx . . $ Ui_CpuPane#accHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("0x") +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::accumulatorcxx . . $ Sim#accumulator., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).());
103 uicxx . . $ CpuPane#ui.->accDecLabelcxx . . $ Ui_CpuPane#accDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::toSignedDecimalcxx . . $ Sim#toSignedDecimal(7864480464b09eea).(Simcxx . . $ Sim#::accumulatorcxx . . $ Sim#accumulator.)));
104
105 uicxx . . $ CpuPane#ui.->xHexLabelcxx . . $ Ui_CpuPane#xHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("0x") +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::indexRegistercxx . . $ Sim#indexRegister., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).());
106 uicxx . . $ CpuPane#ui.->xDecLabelcxx . . $ Ui_CpuPane#xDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::toSignedDecimalcxx . . $ Sim#toSignedDecimal(7864480464b09eea).(Simcxx . . $ Sim#::indexRegistercxx . . $ Sim#indexRegister.)));
107
108 uicxx . . $ CpuPane#ui.->spHexLabelcxx . . $ Ui_CpuPane#spHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("0x") +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::stackPointercxx . . $ Sim#stackPointer., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).());
109 uicxx . . $ CpuPane#ui.->spDecLabelcxx . . $ Ui_CpuPane#spDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::stackPointercxx . . $ Sim#stackPointer.));
110
111 uicxx . . $ CpuPane#ui.->pcHexLabelcxx . . $ Ui_CpuPane#pcHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("0x") +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).());
112 uicxx . . $ CpuPane#ui.->pcDecLabelcxx . . $ Ui_CpuPane#pcDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.));
113
114 uicxx . . $ CpuPane#ui.->instrSpecBinLabelcxx . . $ Ui_CpuPane#instrSpecBinLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier., 8, 2, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).());
115 uicxx . . $ CpuPane#ui.->instrSpecMnemonLabelcxx . . $ Ui_CpuPane#instrSpecMnemonLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(" " +cxx . . $ operator+(c75c3ae4eb9af1a8). Pepcxx . . $ Pep#::enumToMnemonMapcxx . . $ Pep#enumToMnemonMap..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.])
116 +cxx . . $ operator+(fab9b4f80031f353). Pepcxx . . $ Pep#::commaSpaceToAddrModecxx . . $ Pep#commaSpaceToAddrMode(1af896ebbf656e87).(addrMode));
117
118 if (Pepcxx . . $ Pep#::decodeAddrModecxx . . $ Pep#decodeAddrMode..valuecxx . . $ QVector#value(b4be2ec6940d8d62).(Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.) == Enucxx . . $ Enu/::NONEcxx . . $ Enu/NONE.) {
119 uicxx . . $ CpuPane#ui.->oprndSpecHexLabelcxx . . $ Ui_CpuPane#oprndSpecHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
120 uicxx . . $ CpuPane#ui.->oprndSpecDecLabelcxx . . $ Ui_CpuPane#oprndSpecDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
121 uicxx . . $ CpuPane#ui.->oprndHexLabelcxx . . $ Ui_CpuPane#oprndHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
122 uicxx . . $ CpuPane#ui.->oprndDecLabelcxx . . $ Ui_CpuPane#oprndDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
123 }
124 else {
125 uicxx . . $ CpuPane#ui.->oprndSpecHexLabelcxx . . $ Ui_CpuPane#oprndSpecHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("0x") +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::operandSpecifiercxx . . $ Sim#operandSpecifier., 4, 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).());
126 uicxx . . $ CpuPane#ui.->oprndSpecDecLabelcxx . . $ Ui_CpuPane#oprndSpecDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::toSignedDecimalcxx . . $ Sim#toSignedDecimal(7864480464b09eea).(Simcxx . . $ Sim#::operandSpecifiercxx . . $ Sim#operandSpecifier.)));
127 uicxx . . $ CpuPane#ui.->oprndHexLabelcxx . . $ Ui_CpuPane#oprndHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("0x") +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::operandcxx . . $ Sim#operand., Simcxx . . $ Sim#::operandDisplayFieldWidthcxx . . $ Sim#operandDisplayFieldWidth., 16, QLatin1Charcxx . . $ QChar#QChar(a50889c09eec06d9).('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).());
128 uicxx . . $ CpuPane#ui.->oprndDecLabelcxx . . $ Ui_CpuPane#oprndDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(Simcxx . . $ Sim#::toSignedDecimalcxx . . $ Sim#toSignedDecimal(7864480464b09eea).(Simcxx . . $ Sim#::operandcxx . . $ Sim#operand.)));
129 }
130 }
131
132 void CpuPanecxx . . $ CpuPane#::clearCpucxx . . $ CpuPane#clearCpu(49f6e7a06ebc5aa8).()
133 {
134 uicxx . . $ CpuPane#ui.->nLabelcxx . . $ Ui_CpuPane#nLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
135 uicxx . . $ CpuPane#ui.->zLabelcxx . . $ Ui_CpuPane#zLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
136 uicxx . . $ CpuPane#ui.->vLabelcxx . . $ Ui_CpuPane#vLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
137 uicxx . . $ CpuPane#ui.->cLabelcxx . . $ Ui_CpuPane#cLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
138
139 uicxx . . $ CpuPane#ui.->accHexLabelcxx . . $ Ui_CpuPane#accHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
140 uicxx . . $ CpuPane#ui.->accDecLabelcxx . . $ Ui_CpuPane#accDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
141
142 uicxx . . $ CpuPane#ui.->xHexLabelcxx . . $ Ui_CpuPane#xHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
143 uicxx . . $ CpuPane#ui.->xDecLabelcxx . . $ Ui_CpuPane#xDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
144
145 uicxx . . $ CpuPane#ui.->spHexLabelcxx . . $ Ui_CpuPane#spHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
146 uicxx . . $ CpuPane#ui.->spDecLabelcxx . . $ Ui_CpuPane#spDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
147
148 uicxx . . $ CpuPane#ui.->pcHexLabelcxx . . $ Ui_CpuPane#pcHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
149 uicxx . . $ CpuPane#ui.->pcDecLabelcxx . . $ Ui_CpuPane#pcDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
150
151 uicxx . . $ CpuPane#ui.->instrSpecBinLabelcxx . . $ Ui_CpuPane#instrSpecBinLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
152 uicxx . . $ CpuPane#ui.->instrSpecMnemonLabelcxx . . $ Ui_CpuPane#instrSpecMnemonLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
153
154 uicxx . . $ CpuPane#ui.->oprndSpecHexLabelcxx . . $ Ui_CpuPane#oprndSpecHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
155 uicxx . . $ CpuPane#ui.->oprndSpecDecLabelcxx . . $ Ui_CpuPane#oprndSpecDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
156 uicxx . . $ CpuPane#ui.->oprndHexLabelcxx . . $ Ui_CpuPane#oprndHexLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
157 uicxx . . $ CpuPane#ui.->oprndDecLabelcxx . . $ Ui_CpuPane#oprndDecLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
158
159 Simcxx . . $ Sim#::nBitcxx . . $ Sim#nBit. = false;
160 Simcxx . . $ Sim#::zBitcxx . . $ Sim#zBit. = false;
161 Simcxx . . $ Sim#::vBitcxx . . $ Sim#vBit. = false;
162 Simcxx . . $ Sim#::cBitcxx . . $ Sim#cBit. = false;
163
164 Simcxx . . $ Sim#::accumulatorcxx . . $ Sim#accumulator. = 0;
165 Simcxx . . $ Sim#::indexRegistercxx . . $ Sim#indexRegister. = 0;
166 Simcxx . . $ Sim#::stackPointercxx . . $ Sim#stackPointer. = 0; // Sim::readWord(Pep::dotBurnArgument - 7);
167 Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter. = 0;
168 }
169
170 void CpuPanecxx . . $ CpuPane#::runClickedcxx . . $ CpuPane#runClicked(49f6e7a06ebc5aa8).() {
171 uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false);
172 }
173
174 void CpuPanecxx . . $ CpuPane#::setDebugStatecxx . . $ CpuPane#setDebugState(b45ddcbc8423892c).(bool b)
175 {
176 uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(b);
177 Simcxx . . $ Sim#::tracingTrapscxx . . $ Sim#tracingTraps. = uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
178 }
179
180 void CpuPanecxx . . $ CpuPane#::traceTrapscxx . . $ CpuPane#traceTraps(b45ddcbc8423892c).(bool b)
181 {
182 uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(b);
183 }
184
185 void CpuPanecxx . . $ CpuPane#::setButtonsEnabledcxx . . $ CpuPane#setButtonsEnabled(b45ddcbc8423892c).(bool b) {
186 uicxx . . $ CpuPane#ui.->resumePushButtoncxx . . $ Ui_CpuPane#resumePushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(!b);
187 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(!b);
188 if (b) {
189 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
190 }
191 }
192
193 void CpuPanecxx . . $ CpuPane#::runWithBatchcxx . . $ CpuPane#runWithBatch(49f6e7a06ebc5aa8).()
194 {
195 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = true;
196 interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag. = false;
197 QStringcxx . . $ QString# errorStringcxx . . $ QString#QString(ced63f7c635d850d).;
198 while (true) {
199 qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->processEventscxx . . $ QCoreApplication#processEvents(5ce75b802d22674c).(); // To make sure that the event filter gets to handle keypresses during the run
200 if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
201 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
202 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
203 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
204 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
205 }
206 }
207 else {
208 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
209 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
210 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
211 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
212 return;
213 }
214 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] == Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
215 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
216 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
217 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
218 return;
219 }
220 if (interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag.) {
221 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
222 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
223 return;
224 }
225 }
226 }
227
228 void CpuPanecxx . . $ CpuPane#::runWithTerminalcxx . . $ CpuPane#runWithTerminal(49f6e7a06ebc5aa8).()
229 {
230 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = true;
231 waitingcxx . . $ CpuPane#waiting. = Enucxx . . $ Enu/::ERunWaitingcxx . . $ Enu/ERunWaiting.;
232 interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag. = false;
233 QStringcxx . . $ QString# errorStringcxx . . $ QString#QString(ced63f7c635d850d).;
234 while (true) {
235 qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->processEventscxx . . $ QCoreApplication#processEvents(5ce75b802d22674c).(); // To make sure that the event filter gets to handle keypresses during the run
236 if ((Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)] == Enucxx . . $ Enu/::CHARIcxx . . $ Enu/CHARI.) && Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) {
237 // we are waiting for input
238 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
239 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! waitingForInputcxx . . $ CpuPane#waitingForInput(49f6e7a06ebc5aa8).();
240 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
241 return;
242 }
243 else {
244 if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
245 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
246 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
247 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
248 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
249 }
250 }
251 else {
252 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
253 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
254 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
255 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
256 return;
257 }
258 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] == Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
259 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
260 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
261 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
262 return;
263 }
264 if (interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag.) {
265 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
266 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
267 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
268 return;
269 }
270 }
271 }
272 }
273
274 void CpuPanecxx . . $ CpuPane#::resumeWithBatchcxx . . $ CpuPane#resumeWithBatch(49f6e7a06ebc5aa8).()
275 {
276 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = true;
277 interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag. = false;
278 QStringcxx . . $ QString# errorStringcxx . . $ QString#QString(ced63f7c635d850d).;
279 while (true) {
280 qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->processEventscxx . . $ QCoreApplication#processEvents(5ce75b802d22674c).(); // To make sure that the event filter gets to handle keypresses during the run
281 if (uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) {
282 trapLookaheadcxx . . $ CpuPane#trapLookahead(49f6e7a06ebc5aa8).();
283 }
284 else if (Pepcxx . . $ Pep#::isTrapMapcxx . . $ Pep#isTrapMap.[cxx . . $ QMap#`operator[]`(bbd415b616967878).Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)]]) {
285 Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. = true;
286 }
287 else if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)] == Enucxx . . $ Enu/::RETTRcxx . . $ Enu/RETTR.) {
288 Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. = false;
289 }
290 if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
291 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
292 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
293 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
294 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
295 }
296 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] == Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
297 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
298 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
299 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
300 return;
301 }
302 if (Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->containscxx . . $ QMap#contains(8877ebe272b9620d).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.) &&
303 Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked.->valuecxx . . $ QMap#value(866b0a4e5fb46e14).(Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->valuecxx . . $ QMap#value(866b0a4e5fb46e14).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)) == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) {
304 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
305 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
306 return;
307 }
308 }
309 else {
310 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
311 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
312 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
313 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
314 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
315 }
316 if (interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag.) {
317 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
318 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
319 return;
320 }
321 }
322 }
323
324 void CpuPanecxx . . $ CpuPane#::resumeWithTerminalcxx . . $ CpuPane#resumeWithTerminal(49f6e7a06ebc5aa8).()
325 {
326 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = true;
327 waitingcxx . . $ CpuPane#waiting. = Enucxx . . $ Enu/::EDebugResumeWaitingcxx . . $ Enu/EDebugResumeWaiting.;
328 interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag. = false;
329 QStringcxx . . $ QString# errorStringcxx . . $ QString#QString(ced63f7c635d850d).;
330 while (true) {
331 qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->processEventscxx . . $ QCoreApplication#processEvents(5ce75b802d22674c).(); // To make sure that the event filter gets to handle keypresses during the run
332 trapLookaheadcxx . . $ CpuPane#trapLookahead(49f6e7a06ebc5aa8).();
333 if (Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. && !uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) {
334 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
335 do {
336 trapLookaheadcxx . . $ CpuPane#trapLookahead(49f6e7a06ebc5aa8).();
337 qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->processEventscxx . . $ QCoreApplication#processEvents(5ce75b802d22674c).(); // To make sure that the event filter gets to handle keypresses during the run
338 if ((Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)] == Enucxx . . $ Enu/::CHARIcxx . . $ Enu/CHARI.) && Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) {
339 // we are waiting for input
340 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(true);
341 uicxx . . $ CpuPane#ui.->resumePushButtoncxx . . $ Ui_CpuPane#resumePushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(true);
342 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! waitingForInputcxx . . $ CpuPane#waitingForInput(49f6e7a06ebc5aa8).();
343 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
344 return;
345 }
346 else {
347 if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
348 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
349 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
350 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
351 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
352 }
353 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] == Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
354 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
355 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
356 }
357 }
358 else {
359 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
360 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
361 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
362 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
363 }
364 }
365 if (interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag.) {
366 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
367 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
368 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
369 return;
370 }
371 } while (Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped.);
372 }
373 else if ((Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)] == Enucxx . . $ Enu/::CHARIcxx . . $ Enu/CHARI.) && Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) {
374 // we are waiting for input
375 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(true);
376 uicxx . . $ CpuPane#ui.->resumePushButtoncxx . . $ Ui_CpuPane#resumePushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(true);
377 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
378 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
379 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! waitingForInputcxx . . $ CpuPane#waitingForInput(49f6e7a06ebc5aa8).();
380 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
381 return;
382 }
383 else {
384 if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
385 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
386 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
387 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
388 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
389 }
390 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] == Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
391 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).(); // Finish updating the memory before we're done executing
392 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
393 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
394 return;
395 }
396 if (Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->containscxx . . $ QMap#contains(8877ebe272b9620d).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.) &&
397 Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked.->valuecxx . . $ QMap#value(866b0a4e5fb46e14).(Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing.->valuecxx . . $ QMap#value(866b0a4e5fb46e14).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)) == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) {
398 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
399 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
400 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
401 return;
402 }
403 }
404 else {
405 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
406 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
407 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
408 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
409 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
410 #pragma message ("should we return here?")
411 }
412 }
413 if (interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag.) {
414 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
415 return;
416 }
417 }
418 }
419
420 void CpuPanecxx . . $ CpuPane#::singleStepWithBatchcxx . . $ CpuPane#singleStepWithBatch(49f6e7a06ebc5aa8).()
421 {
422 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = true;
423 interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag. = false;
424 QStringcxx . . $ QString# errorStringcxx . . $ QString#QString(ced63f7c635d850d).;
425 trapLookaheadcxx . . $ CpuPane#trapLookahead(49f6e7a06ebc5aa8).();
426 if (Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. && !uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) {
427 QStringcxx . . $ QString# errorStringcxx . . $ QString#QString(ced63f7c635d850d).;
428 do {
429 trapLookaheadcxx . . $ CpuPane#trapLookahead(49f6e7a06ebc5aa8).();
430 qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->processEventscxx . . $ QCoreApplication#processEvents(5ce75b802d22674c).();
431 if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
432 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
433 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
434 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
435 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
436 }
437 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] == Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
438 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
439 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
440 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
441 }
442 }
443 else {
444 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
445 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
446 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
447 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
448 }
449 if (interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag.) {
450 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
451 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
452 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
453 return;
454 }
455 } while (Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped.);
456 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
457 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
458 }
459 else if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
460 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
461 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
462 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
463 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
464 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
465 }
466 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] != Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
467 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
468 }
469 else {
470 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
471 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
472 }
473 }
474 else {
475 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
476 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
477 }
478 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
479 }
480
481 void CpuPanecxx . . $ CpuPane#::singleStepWithTerminalcxx . . $ CpuPane#singleStepWithTerminal(49f6e7a06ebc5aa8).()
482 {
483 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = true;
484 interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag. = false;
485 QStringcxx . . $ QString# errorStringcxx . . $ QString#QString(ced63f7c635d850d).;
486 waitingcxx . . $ CpuPane#waiting. = Enucxx . . $ Enu/::EDebugSSWaitingcxx . . $ Enu/EDebugSSWaiting.;
487 trapLookaheadcxx . . $ CpuPane#trapLookahead(49f6e7a06ebc5aa8).();
488 if (Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. && !uicxx . . $ CpuPane#ui.->traceTrapsCheckBoxcxx . . $ Ui_CpuPane#traceTrapsCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) {
489 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
490 do {
491 trapLookaheadcxx . . $ CpuPane#trapLookahead(49f6e7a06ebc5aa8).();
492 qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->processEventscxx . . $ QCoreApplication#processEvents(5ce75b802d22674c).();
493 if ((Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)] == Enucxx . . $ Enu/::CHARIcxx . . $ Enu/CHARI.) && Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) {
494 // we are waiting for input
495 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(true);
496 uicxx . . $ CpuPane#ui.->resumePushButtoncxx . . $ Ui_CpuPane#resumePushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(true);
497 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! waitingForInputcxx . . $ CpuPane#waitingForInput(49f6e7a06ebc5aa8).();
498 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
499 return;
500 }
501 else {
502 if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
503 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
504 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
505 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
506 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
507 }
508 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] == Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
509 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
510 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
511 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
512 }
513 }
514 else {
515 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
516 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
517 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
518 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
519 }
520 }
521 if (interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag.) {
522 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
523 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
524 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
525 return;
526 }
527 } while (Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped.);
528 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
529 }
530 else if ((Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)] == Enucxx . . $ Enu/::CHARIcxx . . $ Enu/CHARI.) && Simcxx . . $ Sim#::inputBuffercxx . . $ Sim#inputBuffer..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) {
531 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(true);
532 uicxx . . $ CpuPane#ui.->resumePushButtoncxx . . $ Ui_CpuPane#resumePushButton.->setDisabledcxx . . $ QWidget#setDisabled(b45ddcbc8423892c).(true);
533 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! waitingForInputcxx . . $ CpuPane#waitingForInput(49f6e7a06ebc5aa8).();
534 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
535 }
536 else {
537 if (Simcxx . . $ Sim#::vonNeumannStepcxx . . $ Sim#vonNeumannStep(60608c8c3b163578).(errorString)) {
538 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! vonNeumannSteppedcxx . . $ CpuPane#vonNeumannStepped(49f6e7a06ebc5aa8).();
539 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateSimulationViewcxx . . $ CpuPane#updateSimulationView(49f6e7a06ebc5aa8).();
540 if (Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer..lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 1) {
541 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! appendOutputcxx . . $ CpuPane#appendOutput(7df51288a9ebd664).(Simcxx . . $ QString#QString(132dd6869045752b).::outputBuffercxx . . $ Sim#outputBuffer.);
542 Simcxx . . $ Sim#::outputBuffercxx . . $ Sim#outputBuffer. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";
543 }
544 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] != Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
545 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
546 }
547 else {
548 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
549 }
550 }
551 else {
552 QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(0, "Pep/8"cxx . . $ QString#QString(85c52e162fed56f9)., errorString);
553 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
554 return;
555 }
556 if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::instructionSpecifiercxx . . $ Sim#instructionSpecifier.] != Enucxx . . $ Enu/::STOPcxx . . $ Enu/STOP.) {
557 updateCpucxx . . $ CpuPane#updateCpu(49f6e7a06ebc5aa8).();
558 }
559 else {
560 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! executionCompletecxx . . $ CpuPane#executionComplete(49f6e7a06ebc5aa8).();
561 }
562 }
563 isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating. = false;
564 }
565
566 void CpuPanecxx . . $ CpuPane#::trapLookaheadcxx . . $ CpuPane#trapLookahead(49f6e7a06ebc5aa8).()
567 {
568 if (Pepcxx . . $ Pep#::isTrapMapcxx . . $ Pep#isTrapMap.[cxx . . $ QMap#`operator[]`(bbd415b616967878).Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)]]) {
569 Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. = true;
570 Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. = &Pepcxx . . $ Pep#::memAddrssToAssemblerListingOScxx . . $ Pep#memAddrssToAssemblerListingOS.;
571 Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked. = &Pepcxx . . $ Pep#::listingRowCheckedOScxx . . $ Pep#listingRowCheckedOS.;
572 }
573 else if (Pepcxx . . $ Pep#::decodeMnemoniccxx . . $ Pep#decodeMnemonic.[cxx . . $ QVector#`operator[]`(7a0ef1c7079e8533).Simcxx . . $ Sim#::readBytecxx . . $ Sim#readByte(7864480464b09eea).(Simcxx . . $ Sim#::programCountercxx . . $ Sim#programCounter.)] == Enucxx . . $ Enu/::RETTRcxx . . $ Enu/RETTR.) {
574 Simcxx . . $ Sim#::trappedcxx . . $ Sim#trapped. = false;
575 Pepcxx . . $ Pep#::memAddrssToAssemblerListingcxx . . $ Pep#memAddrssToAssemblerListing. = &Pepcxx . . $ Pep#::memAddrssToAssemblerListingProgcxx . . $ Pep#memAddrssToAssemblerListingProg.;
576 Pepcxx . . $ Pep#::listingRowCheckedcxx . . $ Pep#listingRowChecked. = &Pepcxx . . $ Pep#::listingRowCheckedProgcxx . . $ Pep#listingRowCheckedProg.;
577 }
578 }
579
580 void CpuPanecxx . . $ CpuPane#::interruptExecutioncxx . . $ CpuPane#interruptExecution(49f6e7a06ebc5aa8).()
581 {
582 interruptExecutionFlagcxx . . $ CpuPane#interruptExecutionFlag. = true;
583 }
584
585 void CpuPanecxx . . $ CpuPane#::highlightOnFocuscxx . . $ CpuPane#highlightOnFocus(49f6e7a06ebc5aa8).()
586 {
587 if (uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->hasFocuscxx . . $ QWidget#hasFocus(50ce9a9e25b4a850).()) {
588 uicxx . . $ CpuPane#ui.->cpuLabelcxx . . $ Ui_CpuPane#cpuLabel.->setAutoFillBackgroundcxx . . $ QWidget#setAutoFillBackground(b45ddcbc8423892c).(true);
589 }
590 else {
591 uicxx . . $ CpuPane#ui.->cpuLabelcxx . . $ Ui_CpuPane#cpuLabel.->setAutoFillBackgroundcxx . . $ QWidget#setAutoFillBackground(b45ddcbc8423892c).(false);
592 }
593 }
594
595 Enucxx . . $ Enu/::EWaitingcxx . . $ Enu/EWaiting# CpuPanecxx . . $ CpuPane#::waitingStatecxx . . $ CpuPane#waitingState(1652806ed471b963).()
596 {
597 return waitingcxx . . $ CpuPane#waiting.;
598 }
599
600 bool CpuPanecxx . . $ CpuPane#::singleStepHasFocuscxx . . $ CpuPane#singleStepHasFocus(c9857a73d68e59ba).()
601 {
602 return uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).() && uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->hasFocuscxx . . $ QWidget#hasFocus(50ce9a9e25b4a850).();
603 }
604
605 bool CpuPanecxx . . $ CpuPane#::hasFocuscxx . . $ CpuPane#hasFocus(c9857a73d68e59ba).()
606 {
607 return uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->hasFocuscxx . . $ QWidget#hasFocus(50ce9a9e25b4a850).();
608 }
609
610 bool CpuPanecxx . . $ CpuPane#::isSimulatingcxx . . $ CpuPane#isSimulating(c9857a73d68e59ba).()
611 {
612 return isCurrentlySimulatingcxx . . $ CpuPane#isCurrentlySimulating.;
613 }
614
615 void CpuPanecxx . . $ CpuPane#::giveSingleStepFocuscxx . . $ CpuPane#giveSingleStepFocus(49f6e7a06ebc5aa8).()
616 {
617 // protect against this being used incorrectly:
618 if (uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) {
619 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
620 }
621 }
622
623 void CpuPanecxx . . $ CpuPane#::mousePressEventcxx . . $ CpuPane#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# *)
624 {
625 if (uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->isEnabledcxx . . $ QWidget#isEnabled(50ce9a9e25b4a850).()) {
626 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
627 }
628 }
629
630 void CpuPanecxx . . $ CpuPane#::singleStepButtoncxx . . $ CpuPane#singleStepButton(49f6e7a06ebc5aa8).()
631 {
632 uicxx . . $ CpuPane#ui.->singleStepPushButtoncxx . . $ Ui_CpuPane#singleStepPushButton.->setFocuscxx . . $ QWidget#setFocus(49f6e7a06ebc5aa8).();
633 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! singleStepButtonClickedcxx . . $ CpuPane#singleStepButtonClicked(49f6e7a06ebc5aa8).();
634 }