Hi first of all sorry about my bad english. Ok,my question is, how can i display an register value in an MessageBox e.g eax holdīs 0000014c(h) and how can i display this?? Thx bye MFG nop90h
Use the dwtoa function in the MASM32 library. For example,
.DATA buffer BYTE 11 DUP (0) .CODE INVOKE dwtoa, eax, ADDR buffer ; display eax INVOKE MessageBox, NULL, ADDR buffer, NULL, MB_OK
On my page I have a bunch of macros I droped into a file that are most useful in debugging programs. It does things like print registers in message boxes. Go have a look, you might find it usefull. here.is/ComInAsm
Ernie is quite right. It is very handy to be able to dump memory at run time, or rather at crash-time. I have a rudimentary DLL with one function: Debug01 lp,uint which makes a msg box containing a hex dump of "uint" bytes starting at "lp". If you can dump memory, you can dump registers: just push them. If there is any interest I will put my dll source up on my webpage.
Thank you very much for the help (I need it fo an File Dumper) thx