Вообщем мне надо узнать что онпосылает в порты и в какие порты и что получает Код (Text): proc UpdateTempThread, lpParam .sText rb 70h enter xor ebx,ebx lea esi,[.sText] .Loop: ; Temperature info xor eax,eax xor ecx,ecx mov edx,6049h ;!!! 6000h -base port address for my machine, you should scan PCI for get it in al,dx bswap eax sub edx,49h-1fh in al,dx shr al,2 rol eax,2 mov cl,al push ecx fld [.d0427] fld st fld st fimul dword [esp] fsub [.d3208] fistp dword [esp] inc edx inc edx in al,dx shr al,2 rol al,2 mov cl,al push ecx fimul dword [esp] fsub [.d3208] fistp dword [esp] xor eax,eax dec edx in al,dx shl eax,6 add edx,4bh-20h in al,dx shr eax,6 push eax fimul dword [esp] fsub [.d3208] fistp dword [esp] invoke wsprintf,esi,.sFmtTemp add esp,4*5 invoke SendMessage,[hTemp],WM_SETTEXT,ebx,esi ; Voltage info push eax fnstcw [esp] or byte [esp+1],1100b fldcw [esp] push 5 pop ecx mov edx,6023h .NextVoltage: xor eax,eax in al,dx imul eax,25 add eax,133 push eax push eax fld [.dVFactor+ecx*4-4] fimul dword [esp] fld st frndint fsub st1,st fistp dword [esp] fimul [.d100] fistp dword [esp+4] inc edx dec ecx jnz .NextVoltage invoke wsprintf,esi,.sFmtVoltage add esp,2*4+(2*4*5) invoke SendMessage,[hVoltage],WM_SETTEXT,ebx,esi and byte [esp+1],not 1100b fldcw [esp] pop eax ; Fan info xor eax,eax mov edx,602ah in al,dx shl eax,1 push eax jz .NextFan fild [.d1350k] fidiv dword [esp] fistp dword [esp] .NextFan: dec edx in al,dx shl eax,1 push eax jz .PrintFan fild [.d1350k] fidiv dword [esp] fistp dword [esp] .PrintFan: invoke wsprintf,esi,.sFmtFan add esp,4*4 invoke SendMessage,[hFan],WM_SETTEXT,ebx,esi invoke Sleep,5000 jmp .Loop .sFmtTemp db 'CPU:',09h,'%i',0b0h,'C',0ah,\ 'Temp1:',09h,'%i',0b0h,'C',0ah,\ 'Temp2:',09h,'%i',0b0h,'C',0 .sFmtVoltage db 'Vccp:',09h,'%i.%iV',0ah,\ '+2.5V:',09h,'%i.%iV',0ah,\ '+3.3V:',09h,'%i.%iV',0ah,\ '+5V:',09h,'%i.%iV',0ah,\ '+12V:',09h,'%i.%iV',0h .sFmtFan db 'CPU:',09h,'%i rpm',09h,\ 'Fan1:',09h,'%i rpm',00 .d3208 dd 32.08 .d0427 dd 0.427 .d1350k dd 1350000 .d100 dd 100 .dVFactor dd 4.7564e-4,4.7564e-4,6.3545e-4,9.8935e-4,2.3973e-3 endp
Такой рулезный код нужно было писать в аттач. Если есть полностью программа залей ее пж-та, так народу проще.