true_ruf
September 12th, 2006, 11:50
Hi, this is a question regarding masm, link and ollydbg. The problem I have is I am not able to see the symbolic code labels I use in the assembler programs. For example if I compile the following program:
OllyDbg shows the following:
And as you can see Dummy_label is missing. I am using the following command line for the compilation and linking:
ml /Zi /c /Cp /Zd /coff /Cp /Fm /FR test.asm
link /debug /subsystem:console test.obj kernel32.lib
It would be great if anyone could help me. Im trying to use OllyDbg as a tool to help teach assembler and I think this is important. By the way, if I compile using tasm I am able to see symbolic code labels but would like to use masm.
Thx in advance.
Code:
.386
.model flat, stdcall
ExitProcess PROTO, dwExitCodeWORD
.data
list DD 10, 2, 35, 4, 5, 6, 7
.code
_Init:
push offset list
call Dummy
push 0
call ExitProcess
Dummy PROC
jmp Dummy_label
Dummy_label:
ret 4
Dummy ENDP
END _Init
OllyDbg shows the following:
Code:
00401010 >/$ 68 00404000 push offset list
00401015 |. E8 07000000 call Dummy
0040101A |. 6A 00 push 0
0040101C \. E8 0B000000 call ExitProcess
00401021 >/$ EB 00 jmp short 00401023
00401023 \> C2 0400 ret 4
And as you can see Dummy_label is missing. I am using the following command line for the compilation and linking:
ml /Zi /c /Cp /Zd /coff /Cp /Fm /FR test.asm
link /debug /subsystem:console test.obj kernel32.lib
It would be great if anyone could help me. Im trying to use OllyDbg as a tool to help teach assembler and I think this is important. By the way, if I compile using tasm I am able to see symbolic code labels but would like to use masm.
Thx in advance.