Re: how can I see the result of the program?



On Thu, 19 Oct 2006 15:33:04 -0400, Frank Kotler
<spamtrap@xxxxxxxxxx> wrote:

spamtrap@xxxxxxxxxx wrote:
I cannot see the result of ES...
I know "command debug" can reach the goal.
how can use the "command debug"?

"start->run->command" to get a command prompt. Then "debug myprog.com"
(or "myprog.exe"... but debug does better with .com). Then typing '?'
will give a list of commands. The "most important" one is probably 'q' -
quit - so you can get *out* of the damn thing! :) You'll probably want
to "trace" through your program with 't'. When you get to an "int 21h",
use 'p' to "proceed" past it (or you'll be tracing through the "bowels
of dos", which is less helpful than it sounds). 'r' will display (and
optionally set) registers. A google for "debug tutorial" will turn up
more information.

Hope I understood the question.

Best,
Frank

P.S. A "better" debugger here...

http://members.tripod.com/~ladsoft/grdb.htm


Note that DOS Debug doesn't unassemble any
opcode later than those in the original 8088 set.
That means you won't get any 32-bit instructions,
of course, but it also means that you won't get
things like 'SHL AX,2' and a host of others.
This makes it virtually worthless for anything but
really old code, or code you write specifically
with these limitations in mind.

Best regards,



Bob Masta
dqatechATdaqartaDOTcom

D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Home of DaqGen, the FREEWARE signal generator

.



Relevant Pages

  • Re: 8086 Assembly Programming Help
    ... > I am using DEBUG through MS-DOS to make and run a certain program. ... > I know how to do the basic things like MOV, ADD, SUB but when it comes ... and INT 21 deals with DOS (which has its own set of keyboard and video ...
    (comp.lang.asm.x86)
  • Re: Accessing bios information (windows)
    ... The 32-bit dos build would work, but the Windows build - way down at the bottom of the page - is probably what you want. ... debug is usefull enough: ... That will allow you to poke around in memory. ...
    (comp.lang.asm.x86)
  • Re: Debugging programs
    ... > How can I debug programs that I have created in assembly language (Win32 ... OllyDbg is a good debugger and it is ... For 16bit DOS programs you can possibly use Borland's ... But you need to download the basic DJGPP development kit ...
    (alt.lang.asm)
  • Re: How can i install and boot to MS-DOS
    ... At the command prompt you have to start Debug first then issue the commands at the debug prompt. ... If this doesn't work our option list is becoming shorter, a bootsect.dos file must be generated for ntldr to use to boot the DOS installation. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Can I create a DOS COM module using MASM 8 and VC++ Express Edition?
    ... Tried responding to your responses earlier, ... EXE2BIN only knows about DOS 8.3 file names. ... CODEVIEW to debug 16-bit code. ...
    (comp.lang.asm.x86)