Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

debug

Posted on 2000-04-28
16
Medium Priority
?
388 Views
Last Modified: 2008-02-26
Hi ,good day!

I write a simple assebmly program and want to debug it step by step .When I use VC,it's easy ,there already debugger there.But this assebemly program I write by MASM .

Would you please tell me what tool I can use to debug it step by step with register info?
Btw ,i'm under window98 system.

Thanks!
0
Comment
Question by:zystudio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 7
  • 2
16 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 2758832
I would suggest you use SoftIce from Nu-mega.  I think they have the best hard-ware level windows compatible debugger on the market.  I used to use Periscope, which was also good, but Soft-ice is a little better.  You can reach them at

www.numega.com
0
 
LVL 22

Expert Comment

by:nietod
ID: 2758836
The best thing about soft-ice is that it allows you to place a monochrome video card in your computer and attach it to a monochrome monitor.  The debugger will display information on this monitor, not on the regular screen.  this allows you to use the debugger and see what is on the screen at the same time.  very nice.  (You don't have to run this way, if you don't have the hardware, but it is really nice.)
0
 

Author Comment

by:zystudio
ID: 2758892
Thank but I cannot pay such money.I need a simple free one.
I use MASM32 FOR WINDOWS assembler ,is there any debugger with it?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 22

Expert Comment

by:nietod
ID: 2758911
masm probably still comes with a debugger caled "symdeb" or "symdbg"  I can't remember which.  It is very very basic and it probably can't handle 32 bit debugging.  It certainly isn't windows aware in any way.  I don't know if they ship ot anyways.

Other than that, you are going have to pay money.  Debuggers are hard to write--especially in windows--so you probably aren't going to find any for free.

FYI in the future you should try to include all the "conditions" in the original question.  It is a bit unfair to reject an answer because of conditions not present in the question.
0
 
LVL 3

Accepted Solution

by:
PinTail earned 150 total points
ID: 2759219

You can make a VC++ project from your existing source code, then debug from wihtin VC++.  (rember : all C/C++ compilers 'know' assembly language.)
0
 
LVL 22

Expert Comment

by:nietod
ID: 2759296
VC can't debug 16 bit code or non-windows executables.  Only 32 bit windows programs.  It is extremely unlikely that this is for a 32 bit windows program, because it is almost imposible to write them in MASM (16 bit is okay, 32...)
0
 
LVL 3

Expert Comment

by:PinTail
ID: 2759306
>>Btw ,i'm under window98 system.
0
 
LVL 22

Expert Comment

by:nietod
ID: 2759317
We are still talking (probably) about code that is either not a windows program (its DOS) or is not 32 bit.  Have you ever tried to write a 32 bit windows program in MASM?
0
 
LVL 3

Expert Comment

by:PinTail
ID: 2759328
No, I stoped using MASM when I realised how nice it was to write assembly under the VC IDE in VC+ 1.5.

Who writes 16 bit programs any more ?
0
 
LVL 22

Expert Comment

by:nietod
ID: 2759384
>> Who writes 16 bit programs any more ?
Everyone who uses MASM to begin with.   People with legacy issues to contend with (like me.)
0
 

Author Comment

by:zystudio
ID: 2759461
Thank,PinTail.

But How can I write complete assembly code under vc++6.0?

I use .data and .code and use struct ,offset and so on .i.e : Can I just copy all working code in MASM to VC and compile and link? OR there are some limitations?

Thanks!

0
 
LVL 3

Expert Comment

by:PinTail
ID: 2759497
0
 
LVL 22

Expert Comment

by:nietod
ID: 2759507
you can't write the complete code that way, but you can use inline assembly inside a function in C++.   like

int Increment(int i)
{
   __asm
   {
      mov EAX,i
      inc EAX
      mov i,EAX
   }
   return i;  
}

this is sort of the best of both worlds.  Although the in-line asembler is very rudamentary.  it does not have all the features of MASM.  (although many of those features are less important in this case, because you can be used C's features instead.

But you can only do this if you are writting a win32 program.  Is that what you want?
0
 
LVL 3

Expert Comment

by:PinTail
ID: 2759558
Good point.

There are a few things that you may have to change from your existing code, but they ought not be too severe.

If you need to you can also invoke MASM from VC++ see microsoft Knowledge base article : Q106399
0
 
LVL 3

Expert Comment

by:PinTail
ID: 2759646
Good point.

There are a few things that you may have to change from your existing code, but they ought not be too severe.

If you need to you can also invoke MASM from VC++ see microsoft Knowledge base article : Q106399
0
 
LVL 3

Expert Comment

by:PinTail
ID: 2759649
woops
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question