;*******************************************; ; Purpose of this function: wanna see a 32 bit value in hex format from ; within your application program ? This function displays it in a ; message box. Used for debuggin purposes. ; Parameter 1: HWND of the calling program ; Parameter 2: 32 bit value FFShowValue PROC PARM_1:DWORD, PARM_2:DWORD ;-------------------------------------------; PUSH EAX PUSH EBX PUSH ECX PUSH EDX PUSH ESI PUSH EDI PUSH EBP ;-------------------------------------------; PUSH PARM_1 ; POP srhWnd ; PUSH PARM_2 ; POP srValue ; ;-------------------------------------------; MOV EAX,srValue MOV ECX,8 LEA EDI,HEXBUF ADD EDI,7 FFSR_1: PUSH EAX AND EAX,0FH CMP EAX,9 JA FFSR_2 ADD EAX,30H JMP FFSR_3 FFSR_2: ADD EAX,37H FFSR_3: MOV [EDI],AL DEC EDI POP EAX SHR EAX,4 LOOP FFSR_1 INVOKE MessageBoxA, srhWnd, OFFSET HEXBUF, OFFSET HEXCAP, MB_OK ;-------------------------------------------; POP EBP POP EDI POP ESI POP EDX POP ECX POP EBX POP EAX ;-------------------------------------------; RET FFShowValue ENDP ;*******************************************;