Re: Driver sample with *.asm source

Tech-Archive recommends: Fix windows errors by optimizing your registry



Cripes, if you want to see assembly used in a driver, simple set
"USER_C_FLAGS = -FAcs" in your sources file and then load the resulting .COD
file in to your editor du jour. Some variation of -FAcs will give you the
assembly language itself if you don't want the pesky C.

The question is why do you want to do this? Nearly every reason I have seen
for using assembly in the kernel has proven to be falacious and mostly a
result of a severe misunderstanding of kernel mode. If the thread Ali
references is the one I'm thinking of, it was started by a kinder-gartner
who thought assembly was much more elegant than C. Unfortunately, those of
us who started when only assembly was available for programming anything,
unless you wanted to use COBOL, laughed our asses off.

--
The personal opinion of
Gary G. Little

"Ali" <abdulrazaq@xxxxxxxxx> wrote in message
news:1149782340.556257.151420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Peter wrote:
Can I find somewhere *.sys driver sample which uses minimally one *.asm
source and for it's compilation is used MASM ?

Peter

I remember reading an article for asm driver but can't find it now,
it might be possible that site admin has removed that article.
The details of that article are given below hope you can search it on
web;-)


Name: Kernel Mode Driver Tutorial for MASM32 Programmers - Part 1 -
The Basics Abstract Four-F
URL:http://www.assembly-journal.com/index.php

ali



.



Relevant Pages

  • Re: Device Driver that uploads its own code?
    ... use any kernel mode DLL's with your driver. ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... real-time and linear, the idea of fluctuating state and variable latency ...
    (microsoft.public.win32.programmer.kernel)
  • Re: HW registers shared by OAL and user-mode device driver
    ... A Kernel mode driver is a driver that is loaded by the device manager ... User mode drivers run in the lower 2GB address space in the ...
    (microsoft.public.windowsce.platbuilder)
  • Re: HW registers shared by OAL and user-mode device driver
    ... Windows Mobile 6 which is based on Windows CE 5.0 kernel. ... A Kernel mode driver is a driver that is loaded by the device manager ... context of a user mode process and are therefore, with some exceptions, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: MS DDK sample project
    ... driver that will load and run in the kernel. ... kernel mode device driver you NEVER include NTDDK.H. ... For those special needs you include only the header files ... For kernel mode subsystems that do not explicitly include NTDDK there is a ...
    (microsoft.public.development.device.drivers)
  • Re: CDs not playing right
    ... DirectX Version: DirectX 9.0c ... DirectDraw: 0/4 (retail) ... Driver Version: 6.14.0010.6614 ... Microsoft Synthesizer, Software (Not Kernel Mode), Output, ...
    (microsoft.public.windowsmedia.player)