From 9e25eb78da2a50e1614730e556d37ae38fedb39e Mon Sep 17 00:00:00 2001 From: pathoswithin Date: Tue, 8 Dec 2015 21:56:29 +0000 Subject: [PATCH] Ghost monitor: text fix git-svn-id: svn://kolibrios.org@5950 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/gmon/gmon.asm | 42 ++++++++++----------- programs/system/gmon/system.inc | 2 +- programs/system/gmon/tab_conf.inc | 4 +- programs/system/gmon/tab_info.inc | 2 +- programs/system/gmon/tab_test.inc | 61 +++++++++---------------------- 5 files changed, 43 insertions(+), 68 deletions(-) diff --git a/programs/system/gmon/gmon.asm b/programs/system/gmon/gmon.asm index bceaf2c905..749e39a8cd 100644 --- a/programs/system/gmon/gmon.asm +++ b/programs/system/gmon/gmon.asm @@ -41,7 +41,7 @@ include 'macros.inc' tcol equ 0x5080d0 atcol equ 0x4070c0 -val_mod equ 0x3090 +val_mod equ 0x3090 MEOS_APP_START include "tests.inc" ; <-- Много выравниваний, лучше здесь @@ -108,14 +108,14 @@ key: jmp wait_for_event ;--- Button down ----------------------------------------------------- button: - mov eax, 17 ; get id + mov eax, 17 ; get id int 0x40 cmp ah, 1 ; button id == 1 ? jne noexit exit: cmp byte[test_id], 0 je @f call stop_test -@@: mov eax, -1 ; close this program +@@: mov eax, -1 ; close this program int 0x40 noexit: ; кнопки вкладок (2 .. 5) @@ -145,7 +145,7 @@ rtst: mov eax, 51 mov edx, stp mov ebx, 1 int 0x40 - cmp eax, 0xFFFFFFF0 ; -16 + cmp eax, 0xFFFFFFF0 ; -16 je wait_for_event ; <-- ошибка запуска теста, ПЕРЕПИСАТЬ mov [test_pid], eax pop eax @@ -211,7 +211,7 @@ draw_window: mov ecx, 140 * 65536 + 140 @@: add ecx, 10 * 65536 + 10 int 0x40 - cmp cx, 230 ; привязано к координатам окна + cmp cx, 230 ; привязано к координатам окна jl @b ; Пишим названия параметров (Cpu load, temper, etc...) @@ -337,7 +337,7 @@ sh_temp:push ecx mov ecx, 5 mov esi, hwm_rpms mov edx, 121 * 65536 + 80 -sh_fan: push ecx +sh_fan: push ecx lodsd push esi ;реакция на изменения @@ -372,8 +372,8 @@ volt_nxt: fsub dword [edi] fabs - ; fcomp dword [c_eps] ; bug in MeOsEmul - ; fstsw ax + ; fcomp dword [c_eps] ; bug in MeOsEmul + ; fstsw ax fcom dword [c_eps] ; 0xBADCODE fstsw ax finit @@ -459,7 +459,7 @@ end_drow_tab: jmp wait_for_event ;--- Drow Info tab --------------- info_tab: - include "tab_info.inc" + include "tab_info.inc" ;--- Drow test tab --------------- test_tab: include "tab_test.inc" @@ -470,13 +470,13 @@ config_tab: about_tab: include "tab_about.inc" ;--------------------------------------------------------------------- - include "system.inc" + include "system.inc" include "hwm.inc" include "diag.inc" DATA -act_tab db 2 ; Номер активной вкладки +act_tab db 2 ; Номер активной вкладки tab_lab: .1: db 'Info' .2: db 'Tests' @@ -505,7 +505,7 @@ msgs_mon2 mls \ '-12V',\ '-5V' -msg_yes db 'Yes' +msg_yes db 'Yes' msg_no db 'N/A' update_time dd 300 ; период обновления в сотых долях секунды @@ -513,28 +513,28 @@ d_colors dd d_cpu_load, d_mem_usage, d_temp1, d_temp2, d_temp3 c_eps dd 0.01 ; Цвета графиков -colors: dd 0xff0000, 0xff00, 0xff, 0xffffff, tcol, 0xFF7E23, 0x8BA169, 0xff0000 ; первый и последний равны +colors: dd 0xff0000, 0xff00, 0xff, 0xffffff, tcol, 0xFF7E23, 0x8BA169, 0xff0000 ; первый и последний равны colors_end: ;--------------------------------------------------------------------- UDATA test_pid dd ? ; если test_id == 0 - не имеет смысла -test_id db ? ; 0 - тест не запушен (соответствует № кнопки 6..10) +test_id db ? ; 0 - тест не запушен (соответствует № кнопки 6..10) diag_add_v db ? ; 0 - не добавлять данные на график, !0 - добавлять -Vendor: times 12 db ? +Vendor: times 12 db ? CPU_fam: db ? CPU_mod: db ? CPU_type: db ? CPU_mmx: db ? ; Для реакции на изменения -old_t1: dd ? ; последнее значение temp1 -old_t2: dd ? ; ... -old_t3: dd ? -old_f1: dd ? -old_f2: dd ? -old_f3: dd ? +old_t1: dd ? ; последнее значение temp1 +old_t2: dd ? ; ... +old_t3: dd ? +old_f1: dd ? +old_f2: dd ? +old_f3: dd ? old_volts: times 7 dd ? ; Грфики diff --git a/programs/system/gmon/system.inc b/programs/system/gmon/system.inc index b5e2c055d4..eb2313ea9b 100644 --- a/programs/system/gmon/system.inc +++ b/programs/system/gmon/system.inc @@ -149,7 +149,7 @@ end if ; ebx - координаты : X << 16 + Y show_text: mov eax, 4 - mov ecx, 0x10000000 + xor ecx, ecx @@: movzx esi, byte[edx] inc edx diff --git a/programs/system/gmon/tab_conf.inc b/programs/system/gmon/tab_conf.inc index 03e31f5bb2..82ef4dce67 100644 --- a/programs/system/gmon/tab_conf.inc +++ b/programs/system/gmon/tab_conf.inc @@ -23,7 +23,7 @@ mov eax, 4 mov ebx, 17 * 65536 + 285 mov edx, msg_cf_utime - mov ecx, 0x10000000 + xor ecx, ecx mov esi, 11 int 0x40 @@ -45,7 +45,7 @@ mov ebx, 152 * 65536 + 285 mov edx, dub_p mov esi, 1 - mov ecx, 0x10000000 + xor ecx, ecx int 0x40 jmp end_drow_tab diff --git a/programs/system/gmon/tab_info.inc b/programs/system/gmon/tab_info.inc index 4034816ac3..03d5b86e24 100644 --- a/programs/system/gmon/tab_info.inc +++ b/programs/system/gmon/tab_info.inc @@ -120,7 +120,7 @@ end if mov esi, 1 mov ecx, 6 ; <- количество строк nxt_dp: push ecx - mov ecx, 0x10000000 + xor ecx, ecx int 0x40 add ebx, 10 pop ecx diff --git a/programs/system/gmon/tab_test.inc b/programs/system/gmon/tab_test.inc index b8a53c7760..a0ee1a902c 100644 --- a/programs/system/gmon/tab_test.inc +++ b/programs/system/gmon/tab_test.inc @@ -2,15 +2,9 @@ ; Ghost Monitor - утилита (стресс) тестирования и мониторинга системы ; Copyright (C) 2005, 2006, 2007 Mihailov Ilia (ghost.nsk@mail.ru) ; All Right Reserved - -; -; ; ; Вкладка тестов ; -; -; -; ; "GenuineIntel" - International Electronics ; "GenuineTMx86" - Transmeta Processor ; "AuthenticAMD" - Advanced Micro Devices @@ -65,66 +59,49 @@ k6n: int 0x40 jne k7n mov esi, atcol k7n: int 0x40 - ; MMX тест - ; add ecx, 27 * 65536 - ; inc edx - ; mov esi, tcol - ; cmp byte[CPU_mmx], 1 - ; jne mmxn - ; mov esi, atcol -; mmxn: int 0x40 ; Пишем названия кнопок mov eax, 4 mov ebx, 30 * 65536 + 307 mov esi, 7 mov edx, tmsg_p ; P5 - mov ecx, 0x10000000 + xor ecx, ecx cmp byte[test_id], 6 jne nr1 - mov ecx, 0x10FF0000 + mov ecx, 0xFF0000 nr1: int 0x40 - mov ebx, 30 * 65536 + 307 + 27 + add ebx, 27 mov esi, 20 ; P6 - mov ecx, 0x10000000 + xor ecx, ecx cmp byte[test_id], 7 jne nr2 - mov ecx, 0x10FF0000 + mov ecx, 0xFF0000 nr2: int 0x40 - mov ebx, 30 * 65536 + 307 + 27 + 27 + add ebx, 27 mov edx, tmsg_k6 ; K6 mov esi, 13 - mov ecx, 0x10000000 + xor ecx, ecx cmp byte[test_id], 8 jne nr3 - mov ecx, 0x10FF0000 + mov ecx, 0xFF0000 nr3: int 0x40 - mov ebx, 30 * 65536 + 307 + 27 + 27 + 27 + add ebx, 27 mov edx, tmsg_k7 ; K7 mov esi, 15 - mov ecx, 0x10000000 + xor ecx, ecx cmp byte[test_id], 9 jne nr4 - mov ecx, 0x10FF0000 + mov ecx, 0xFF0000 nr4: int 0x40 - ; mov ebx, 30 * 65536 + 307 + 27 + 27 + 27 + 27 - ; mov edx, tmsg_mmx ; MMX - ; mov esi, 12 - ; mov ecx, 0x10000000 - ; cmp byte[test_id], 10 - ; jne nr5 - ; mov ecx, 0x10FF0000 -; nr5: int 0x40 - ; recommendate - mov ecx, 0x10000000 + xor ecx, ecx mov ebx, 190 * 65536 + 420 mov edx, tmsg_rec - mov esi, 14 + mov esi, 13 int 0x40 ; read about mov ebx, 30 * 65536 + 282 mov edx, tmsg_war - mov esi, 34 - mov ecx, 0x10FF0000 + mov esi, 35 + mov ecx, 0xFF0000 int 0x40 ; recommendate color mov eax, 13 @@ -133,16 +110,14 @@ nr4: int 0x40 mov edx, atcol int 0x40 - jmp end_drow_tab tmsg_p db 'Pentium (Pro/II/III)' ; 7/20 tmsg_k6 db 'K6 (I/II/III)' ; 13 tmsg_k7 db 'K7/Athlon/Duron' ; 15 -;tmsg_mmx db 'MMX (memory)' ; 12 -tmsg_rec db '- recommendate' ; 14 +tmsg_rec db '— recommended' ; 13 if lang eq it - tmsg_war db 'Potrebbe danneggiare lo hardware ' ; 34 + tmsg_war db 'Potrebbe danneggiare lo hardware ' else - tmsg_war db 'May permanent damage to electronic' ; 34 + tmsg_war db 'May permanently damage the hardware' end if