Re: Debug.exe for win32

From: Al Leitch (al_leitch_at_3*&yahoo.com)
Date: 09/07/04


Date: Mon, 06 Sep 2004 23:25:37 -0700

You can, by prepending 0x68h before your instructions. Annie Ascii did
this with her DOS source code, being her assembler only supported
16-bit. However, if your talking about Windows programming, the story
doesn't stop here...

When you produce a 32-bit windows executable, your code and data are not
the only actual contents of the file. There's an entire set of data
structures that every 32-bit windows executable, known as the Portable
Executable file format. So if you were to create a 32-bit win exe under
debug, you woul have to have intimate understanding of the file format
and you'd have to define it with DB, DW and DD statements.

Robert wrote:

>>No. Microsoft's debug.exe only knows 16-bit instructions
>
> and >registers
>
>>(unless they changed it in Windows XP, but I doubt that).
>
>
> Ok, how about this: Is it possible to somehow write a program
> that can access 32 instructions/registers from debug.exe? I
> vaguely remember that there were tables of some kind that
> contained pointers to interrupts and other functions. It must
> be possible to write a program to do this with debug.exe.
>
> For example, if I knew what I was doing, could I use
> debug.exe to write an actual .386 assembler, for example?
> There must be some way to systematically enlarge my
> programming options with the basic 8086 instruction set at my
> disposal.
>
> Maybe I'm grasping at straws, but I'm just very curious.
> Thanks for your responces.



Relevant Pages

  • Re: Trivia Question
    ... This is what I meant by "ignorance". ... people's *existing* HLL knowledge to learn assembly language programming? ... Which I had such an assembler when starting with Delphi. ... After working with the needed instructions some times, repleatly, they tend to stick around in your memory. ...
    (alt.lang.asm)
  • Re: Evolution
    ... >> it different from HLL programming? ... inline assembler and larger parts by linking to an assembler ... the macro is from a macro library which you have written a long ... or two instructions if you ...
    (alt.lang.asm)
  • Re: HLA History
    ... >> sequence of processor instructions to solve a given problem. ... I have written my trivial assembler ... >> programming. ... pupils to learn to write with 10 fingers. ...
    (alt.lang.asm)
  • Re: Multi-Statements Lines
    ... Instructions are not isolated things, ... mov eax 0 ... assembler instructions as having one function. ... bash at learning Windows assembler programming. ...
    (alt.lang.asm)
  • Re: Debug.exe for win32
    ... by prepending 0x68h before your instructions. ... Annie Ascii did ... > this with her DOS source code, being her assembler only supported ...
    (alt.lang.asm)