172,12 → 172,10 |
call write_data |
|
add eax,0x15 |
mov byte[write_data.defaunt_color], 1 |
mov ebx, drv_data.Tmax |
call write_data |
|
add eax,0x2a |
mov byte[write_data.defaunt_color], 1 |
mov ebx, drv_data.Tcrit |
call write_data |
|
215,11 → 213,9 |
|
mov eax,0x00E5005f |
mov ebx, drv_data.Tdie |
mov byte[write_data.defaunt_color], 1 |
call write_data |
|
mov eax,0x007a004a |
mov byte[write_data.defaunt_color], 1 |
mov ebx, drv_data.Tcrit_hyst |
call write_data |
jmp @f |
258,7 → 254,6 |
;; procedure write_data(eax, ebx); |
;; eax=x*65536+y |
;; ebx = pointer on value |
;; edx = 1 - set color, 0 - set defaunt color |
;; ecx register don`t save |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
align 4 |
280,35 → 275,6 |
pop eax |
ret |
@@: |
;set color |
push eax |
push edx |
push ecx |
cmp byte[.defaunt_color], 1 |
jnz @f |
mov dword[.color_text], 0x000000cf ;blue |
jmp .end_set_color |
@@: |
xor edx, edx |
mov eax, [esi] |
imul eax, 10 |
xor edx, edx |
div dword[drv_data.Tcrit] |
cmp eax, 9 |
jb @f |
mov dword[.color_text],0x00d50000 ; red |
jmp .end_set_color |
@@: |
cmp eax, 7 |
jb @f |
mov dword[.color_text],0x00f07000 ; orange |
jmp .end_set_color |
@@: |
mov dword[.color_text],0x0000d000 ; green |
.end_set_color: |
pop ecx |
pop edx |
pop eax |
;write_value |
; value / 1000 =value_in_1 |
;input value_in_1,koord_start |
343,7 → 309,7 |
mov ebx,0x80030000 |
mov eax,SF_DRAW_NUMBER |
mov esi,0x10000000 |
add esi,[.color_text] |
add esi,[sc.work_text] |
mcall |
shl edi,16 |
mov eax,SF_DRAW_TEXT |
351,13 → 317,13 |
mov ebx,edx |
|
mov ecx,0x90000000 |
add ecx,[.color_text] |
add ecx,[sc.work_text] |
mov edx,_dot |
mcall |
mov eax,SF_DRAW_NUMBER |
mov edx,ebx |
mov esi,0x10000000 |
add esi,[.color_text] |
add esi,[sc.work_text] |
mov ebx,0x00030000 |
|
add edx,0x80000 |
366,23 → 332,19 |
mov eax,SF_DRAW_TEXT |
mov ebx,edx |
mov ecx,0x80000000 |
add ecx,[.color_text] |
add ecx,[sc.work_text] |
add ebx,0x180000 |
mov edx,_t |
mcall |
|
mov ecx,0x90000000 |
add ecx,[.color_text] |
add ecx,[sc.work_text] |
add ebx,0x60000 |
mov edx,_C |
mcall |
pop ebx |
pop eax |
mov byte[.defaunt_color], 0 |
ret |
.color_text: rd 1 ; color input temp |
.defaunt_color: rb 1 ; flag set color |
;; end proc |
|
error_drv: |
mcall SF_FILE,run_notify |