L
Lathe_Biosas
Hi
I would like to print on a win cmd console a register value, the value
is an "unsigned long" and have some output like these:
Register: 0x00000000
Tryed with
printf("Register: %#010lx \n", register);
printf("Register: %#08lx \n", register);
but I get 0x000003, only the first 6 values ??? from LSB to MSB,
normally MSBs are cero, but I would like to see them all.
Is there a way to print, hexadecimal, the hole 32 bits and add a nice
0x at the beginning?
I have read some books, googled and couldn't give a solution, any help
or info would be kindly appreciated.
Best Regards
I would like to print on a win cmd console a register value, the value
is an "unsigned long" and have some output like these:
Register: 0x00000000
Tryed with
printf("Register: %#010lx \n", register);
printf("Register: %#08lx \n", register);
but I get 0x000003, only the first 6 values ??? from LSB to MSB,
normally MSBs are cero, but I would like to see them all.
Is there a way to print, hexadecimal, the hole 32 bits and add a nice
0x at the beginning?
I have read some books, googled and couldn't give a solution, any help
or info would be kindly appreciated.
Best Regards