From 7763a294f31882dc9e94fa7a455f988ef44b1c2e Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Mon, 20 Sep 2021 10:20:43 +0000 Subject: [PATCH] pcidev: fix output of the last bus #, increase window height git-svn-id: svn://kolibrios.org@9196 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/testing/pcidev/trunk/PCIDEV.ASM | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/programs/testing/pcidev/trunk/PCIDEV.ASM b/programs/testing/pcidev/trunk/PCIDEV.ASM index 0f24be86f7..9a5ea46a47 100644 --- a/programs/testing/pcidev/trunk/PCIDEV.ASM +++ b/programs/testing/pcidev/trunk/PCIDEV.ASM @@ -231,9 +231,9 @@ draw_window: and ch, 0x0f add cx, '00' mov [PCIWin + 87], cx - mov cl, [PCI_LastBus] ; will only work if [PCI_LastBus] < 10 - add cl, '0' - mov [PCIWin + 106], cl +; mov cl, [PCI_LastBus] ; will only work if [PCI_LastBus] < 10 +; add cl, '0' +; mov [PCIWin + 106], cl mov edx, PCIWin mov ebx, 20 * 65536 + 25 ; x start, ystart of text @@ -250,6 +250,9 @@ draw_window: ; Quantity of devices... movzx ecx, byte [total] ; number to draw mcall SF_DRAW_NUMBER, 0x00020000,,150 * 65536 + 65, 0x224466 + movzx ecx, byte [PCI_LastBus] ; number to draw + mcall SF_DRAW_NUMBER, 0x00020000,,<236, 45>, 0x224466 + mov ebx,ecx mov ecx,2 @@ -735,7 +738,7 @@ DATA Form: dw 800 ; window width (no more, special for 800x600) dw 100 ; window x start - dw 620 ; window height + dw 748 ; window height dw 20 ; window y start title db 'PCI Device Enumerator v 2.3', 0 @@ -744,7 +747,7 @@ if lang eq it PCIWin mls \ ' Don`t forget to enable PCI Access to Applications in Setup Menu.',\ '',\ - 'Versione PCI = x.xx; Ultimo Bus PCI = x',\ + 'Versione PCI = x.xx; Ultimo Bus PCI = ',\ 'User MMIO channel = 0F.F:F ',\ 'Numbero di unità PCI = ',\ '',\ @@ -764,7 +767,7 @@ else PCIWin mls \ ' Don`t forget to enable PCI Access to Applications in Setup Menu.',\ '',\ - 'PCI Version = x.xx; Last PCI Bus = x',\ + 'PCI Version = x.xx; Last PCI Bus = ',\ 'User MMIO channel = 0F.F:F ',\ 'Number of PCI units = ',\ '',\