Skip to content

Commit 51e8516

Browse files
committed
README.md instructions; DebugView small fix
1 parent 152f47f commit 51e8516

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,26 @@ The UKNCBTL project consists of:
1717
* Project wiki: https://github.com/nzeemin/ukncbtl-doc/wiki
1818
* Screenshots: https://github.com/nzeemin/ukncbtl-doc/wiki/Screenshots-ru
1919
* User's Manual (in Russian): https://github.com/nzeemin/ukncbtl-doc/wiki/Users-Manual-ru
20+
21+
22+
## Как запустить под Linux
23+
24+
### Собрать из исходников
25+
26+
1. Установить пакеты: Qt 5 + QtScript<br>
27+
`sudo apt install qtbase5-dev qt5-qmake qtscript5-dev`
28+
2. Скачать исходники: либо через<br>
29+
`git clone https://github.com/nzeemin/ukncbtl-qt.git`<br>
30+
либо скачать как .zip и распаковать
31+
3. Выполнить команды:<br>
32+
`cd emulator`<br>
33+
`qmake "CONFIG+=release" QtUkncBtl.pro`<br>
34+
`make`<br>
35+
4. Дать права на выполнение: `chmod +x QtUkncBtl`
36+
5. Запустить `QtUkncBtl`
37+
38+
### Используя готовый AppImage
39+
40+
1. Зайти в [Releases](https://github.com/nzeemin/bkbtl-qt/releases) найти последний AppImage-релиз и скачать `*.AppImage` файл
41+
2. Дать права на выполнение: `chmod +x UKNCBTL_Qt-a808c28-x86_64.AppImage` (подставить тут правильное название AppImage файла)
42+
3. Запустить AppImage файл

emulator/images/ukncbtl.png

623 Bytes
Loading

emulator/qdebugview.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -361,18 +361,18 @@ void QDebugProcessorCtrl::DrawBinaryValueChanged(
361361
DebugCtrlHitTest QDebugProcessorCtrl::hitTest(int x, int y)
362362
{
363363
DebugCtrlHitTest hit = QDebugCtrl::hitTest(x, y);
364-
if (hit.line < 0 || hit.line == 9 || hit.line > 11)
364+
if (hit.line < 1 || hit.line == 10 || hit.line > 12)
365365
return hit; // Invalid line number
366366
hit.isValid = true;
367367

368368
const CProcessor* pProc = getProc();
369-
if (hit.line < 8)
370-
hit.value = pProc->GetReg(hit.line);
371-
else if (hit.line == 8)
369+
if (hit.line > 0 && hit.line < 9)
370+
hit.value = pProc->GetReg(hit.line - 1);
371+
else if (hit.line == 9)
372372
hit.value = pProc->GetCPC();
373-
else if (hit.line == 10)
374-
hit.value = pProc->GetPSW();
375373
else if (hit.line == 11)
374+
hit.value = pProc->GetPSW();
375+
else if (hit.line == 12)
376376
hit.value = pProc->GetCPSW();
377377

378378
return hit;

0 commit comments

Comments
 (0)