MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / stackUpdate

Method stackUpdate

gui/qt/debugger.cpp:2220–2232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2218}
2219
2220void MainWindow::stackUpdate() {
2221 disconnect(ui->stackView->verticalScrollBar(), &QScrollBar::valueChanged, this, &MainWindow::stackScroll);
2222 ui->stackView->clear();
2223
2224 m_stackAddr = adlState(ui->checkADLStack->checkState()) ? cpu.registers.SPL : cpu.registers.SPS;
2225
2226 for (int i = 0; i < 20; i++) {
2227 stackLine();
2228 }
2229
2230 ui->stackView->moveCursor(QTextCursor::Start);
2231 connect(ui->stackView->verticalScrollBar(), &QScrollBar::valueChanged, this, &MainWindow::stackScroll);
2232}
2233
2234void MainWindow::stackLine() {
2235 int width = adlState(ui->checkADLStack->checkState()) ? 6 : 4;

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected