Re: Driver sample with *.asm source




You can generate a .asm file from an existing driver using IDAPro 5.
This program generates an .asm file that can be passed to masm.


Tim Roberts wrote:
Peter <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

But like I mentioned it seems that all these directives are sufficient, but
I am not 100% sure about it, even if this part of code is really functional
in result NDIS IM driver. In *.cod file are much more directives, I am not so
good in MASM to know what of these I must to use also in *.asm source file.

.COD files cannot actually be passed directly into MASM. Unlike gcc,
Visual C++ doesn't create an assembly file and then assemble it. It
creates machine language more or less directly. The .COD files are
generated in a separate step, and are representative of what the MASM would
look like, but manual intervention is required.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

.



Relevant Pages

  • Re: The textbook ASSEMBLERS AND LOADERS...
    ... cited has a whole chapter dedicated to directives... ... The directives are thus executed by the assembler, ... An HLA is not an HLL and we were talking about ... no version of MASM is an HLA since it passes the one most ...
    (alt.lang.asm)
  • Re: masm 6.1 unwelcome optimizations
    ... to registers and directives that don't apply to the 8086 -- one would think that ... I find that MASM 6.10 doesn't honor the explicit ... and the expected assembled object code: ... OpenWatcom WASM? ...
    (comp.os.msdos.programmer)
  • Re: Apologies seem to hurt
    ... Are we talking MASM here? ... A assembler to me is a processor that can be made to group a precise ... fourth and fifth lines uses the BYTE and DWORD data directives ... cannot be duplicated with MACRO statements. ...
    (alt.lang.asm)
  • Re: Assembling Visual Studio generated listing files
    ... No, you NEVER use MASM for driver development, EVER. ... I generated a .asm listing from a simple C++ program and the assembler ... Open the generated asm file in IDE from debug folder. ...
    (microsoft.public.vc.mfc)
  • Re: new public domain code available
    ... Tim Roberts wrote: ... >>Hi Ed. Congratulations on your work. ... >>FIBO.ASM but I haven't because I don't have NASM and I don't have that much ... It took me two minutes to get it running in MASM. ...
    (comp.lang.asm.x86)