Well , there is no such sample. And basicaly , you dont need one. If you know assembly for IA32 , and you know how to write a filter driver in C it will be trivial to port it. Altough it would be an overkill. Just imagine how many structures , enums and stuff you have to translate into
include files from ntddk.h. Waste of time. Unless you are writing custom debugging tools , or you need to interact with HW bypassing NT support , youl hardly ever need to write a single line of code in assembly.
----- Original Message -----
From: Satish
To: File Systems Developers
Sent: Friday, May 11, 2001 7:28 AM
Subject: [ntfsd] Re: Compiling inline Assembly
Thanks u …
I need Filter Driver which is written completly in Assembly. Can u point me somewhere for Sample ?
Regards,
Satish K.S
----- Original Message -----
From: danp
To: File Systems Developers
Sent: Thursday, May 10, 2001 7:48 PM
Subject: [ntfsd] Re: Compiling inline Assembly
BITS 32
GLOBAL _DriverEntry
_DriverEntry:
xor eax , eax
retn 8
compile and link this to a .sys and you got a driver which does nothing , but loads.
----- Original Message -----
From: Satish
To: File Systems Developers
Sent: Thursday, May 10, 2001 4:24 PM
Subject: [ntfsd] Re: Compiling inline Assembly
Can i get any sample for NT Driver which is written in Assembly. ?
Regards,
Satish K.S
----- Original Message -----
From: Nuno1
To: File Systems Developers
Sent: Thursday, May 10, 2001 7:15 PM
Subject: [ntfsd] Re: Compiling inline Assembly
i saw the answer about the _emit , good to know about it but here is mostly the same way.
__asm {
jmp domodify
modifyhere:
nop ;will become INT 20 (CDh,20h)
nop
ret
domodify:
mov BYTE PTR [modifyhere],0xcd
mov BYTE PTR [modifyhere+1],0x20
jmp modifyhere
}
the idea is to make a label and just and nop the places you like to modify (nop cost one byte (opcode)).
and then i just write to the label offset.
it mostly the same ;).
have fun,
Nuno1
----- Original Message -----
From: Satish
To: File Systems Developers
Sent: Thursday, May 10, 2001 1:57 PM
Subject: [ntfsd] Re: Compiling inline Assembly
Yea i am doing Self modify. Do u have any sample for this ?
Regards,
Satish K.S
----- Original Message -----
From: Nuno1
To: File Systems Developers
Sent: Thursday, May 10, 2001 6:16 PM
Subject: [ntfsd] Re: Compiling inline Assembly
you cant use in inline assembler any DB , DW , DD etc , also DUP or THIS is not vaild to use on an inline assembler.
why do u need to do it ? are you trying to do a self modify code ?
----- Original Message -----
From: Satish
To: File Systems Developers
Sent: Thursday, May 10, 2001 1:04 PM
Subject: [ntfsd] Compiling inline Assembly
Hi all,
How to compile Inline Assembly code.
__asm {
dd 00h
}
If i compile this line it is giveing following error.
error C2400: inline assembler syntax error in ‘opcode’; found ‘constant’
Is their any way to compile this ?
Thanks in Advance,
Satish K.S
You are currently subscribed to ntfsd as: xxxxx@netvision.net.il
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: xxxxx@aalayance.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: xxxxx@netvision.net.il
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: xxxxx@aalayance.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: danp@jb.rdsor.ro
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: xxxxx@aalayance.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: danp@jb.rdsor.ro
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com