Skip to content

Commit

Permalink
README.md instructions; DebugView small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Feb 11, 2024
1 parent 152f47f commit 51e8516
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,26 @@ The UKNCBTL project consists of:
* Project wiki: https://github.com/nzeemin/ukncbtl-doc/wiki
* Screenshots: https://github.com/nzeemin/ukncbtl-doc/wiki/Screenshots-ru
* User's Manual (in Russian): https://github.com/nzeemin/ukncbtl-doc/wiki/Users-Manual-ru


## Как запустить под Linux

### Собрать из исходников

1. Установить пакеты: Qt 5 + QtScript<br>
`sudo apt install qtbase5-dev qt5-qmake qtscript5-dev`
2. Скачать исходники: либо через<br>
`git clone https://github.com/nzeemin/ukncbtl-qt.git`<br>
либо скачать как .zip и распаковать
3. Выполнить команды:<br>
`cd emulator`<br>
`qmake "CONFIG+=release" QtUkncBtl.pro`<br>
`make`<br>
4. Дать права на выполнение: `chmod +x QtUkncBtl`
5. Запустить `QtUkncBtl`

### Используя готовый AppImage

1. Зайти в [Releases](https://github.com/nzeemin/bkbtl-qt/releases) найти последний AppImage-релиз и скачать `*.AppImage` файл
2. Дать права на выполнение: `chmod +x UKNCBTL_Qt-a808c28-x86_64.AppImage` (подставить тут правильное название AppImage файла)
3. Запустить AppImage файл
Binary file modified emulator/images/ukncbtl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions emulator/qdebugview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,18 +361,18 @@ void QDebugProcessorCtrl::DrawBinaryValueChanged(
DebugCtrlHitTest QDebugProcessorCtrl::hitTest(int x, int y)
{
DebugCtrlHitTest hit = QDebugCtrl::hitTest(x, y);
if (hit.line < 0 || hit.line == 9 || hit.line > 11)
if (hit.line < 1 || hit.line == 10 || hit.line > 12)
return hit; // Invalid line number
hit.isValid = true;

const CProcessor* pProc = getProc();
if (hit.line < 8)
hit.value = pProc->GetReg(hit.line);
else if (hit.line == 8)
if (hit.line > 0 && hit.line < 9)
hit.value = pProc->GetReg(hit.line - 1);
else if (hit.line == 9)
hit.value = pProc->GetCPC();
else if (hit.line == 10)
hit.value = pProc->GetPSW();
else if (hit.line == 11)
hit.value = pProc->GetPSW();
else if (hit.line == 12)
hit.value = pProc->GetCPSW();

return hit;
Expand Down

0 comments on commit 51e8516

Please sign in to comment.