Commit 51e8516 1 parent 152f47f commit 51e8516 Copy full SHA for 51e8516
File tree 3 files changed +29
-6
lines changed
3 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,26 @@ The UKNCBTL project consists of:
17
17
* Project wiki: https://github.com/nzeemin/ukncbtl-doc/wiki
18
18
* Screenshots: https://github.com/nzeemin/ukncbtl-doc/wiki/Screenshots-ru
19
19
* 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 файл
Original file line number Diff line number Diff line change @@ -361,18 +361,18 @@ void QDebugProcessorCtrl::DrawBinaryValueChanged(
361
361
DebugCtrlHitTest QDebugProcessorCtrl::hitTest (int x, int y)
362
362
{
363
363
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 )
365
365
return hit; // Invalid line number
366
366
hit.isValid = true ;
367
367
368
368
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 )
372
372
hit.value = pProc->GetCPC ();
373
- else if (hit.line == 10 )
374
- hit.value = pProc->GetPSW ();
375
373
else if (hit.line == 11 )
374
+ hit.value = pProc->GetPSW ();
375
+ else if (hit.line == 12 )
376
376
hit.value = pProc->GetCPSW ();
377
377
378
378
return hit;
You can’t perform that action at this time.
0 commit comments