can you add "DRIVER" type in "File-->New Project" wizard?
I use RadASM to build .sys files, the way is to create a new win32 application project and then edit "Project Options" to:

5,O,$B\LINK.EXE /DRIVER /SUBSYSTEM:NATIVE /RELEASE /BASE:0x10000 /align:32 /LIBPATH:"$L" /OUT:"$5",3,4

OfCourse,"$5" is changed to "file.sys".(by editing .rap file directly)
I think maybe u can add "DRIVER" option in "New Project" wizard.
thank u!
Posted on 2004-11-13 12:14:44 by dyna
you can try it yourself:



:::
:::
13=.sys


Type=Win32 App,Win32 App (no res), ... ,Sys Driver


Files=1,1,0,0,0,0
Folders=1,0,0
MenuMake=0,1,1,1,1,1,0,1,0,0
1=
2=3,O,$B\ML.EXE /nologo /c /coff /Cp /I"$I\sys\",2
3=5,O,$B\LINK.EXE /NOLOGO /DRIVER /SUBSYSTEM:NATIVE /BASE:0X10000 /ALIGN:0X20 /LIBPATH:"$L\sys\" /OUT:"$13",*.obj
4=0,0,,5
5=
6=
7=
11=
12=
13=
14=
15=
16=
17=



Although i never coded one :o
Posted on 2004-11-13 13:38:55 by drizz
i have done it
i never know RadASM works in such way
thank u very much!
Posted on 2004-11-13 17:12:20 by dyna
i edit masm.ini like this


16=.sys


Type=......,Sys Driver


Files=1,1,0,0,0
Folders=1,0,0
MenuMake=0,1,1,1,1,1,1,0,0,0
1=
2=3,O,$B\ML.EXE /nologo /c /coff /Cp /I"$I",2
3=5,O,$B\LINK.EXE /NOLOGO /DRIVER /SUBSYSTEM:NATIVE /BASE:0X10000 /ALIGN:32 /OUT:"$16",3
4=0,0,,5
5=
6=*.obj,O,$B\ML.EXE /c /coff /Cp /nologo /I"$I",2
7=
11=
12=3,O,$B\ML.EXE /c /coff /Cp /Zi /nologo /I"$I",2
13=5,O,$B\LINK.EXE /NOLOGO /DRIVER /DEBUG /SUBSYSTEM:NATIVE /BASE:0X10000 /ALIGN:32 /OUT:"$16",3
14=0,0,,5
15=
16=*.obj,O,$B\ML.EXE /c /coff /Cp /nologo /I"$I",2
17=


When push "Assemble" button, it works OK, then i push "Build" button, it says:
"Assembling: tmpSys.asm
Make error(s) occured.
Total compile time 661 ms"

But the .sys file is already there, and it works right. i don't know what else should i do to correct the build message?
Posted on 2004-11-13 17:52:05 by dyna
Hi dyna

The link command is wrong.

Should be:

3=16,O,$B\LINK.EXE /NOLOGO /DRIVER /SUBSYSTEM:NATIVE /BASE:0X10000 /ALIGN:32 /OUT:"$16",3

13=16,O,$B\LINK.EXE /NOLOGO /DRIVER /DEBUG /SUBSYSTEM:NATIVE /BASE:0X10000 /ALIGN:32 /OUT:"$16",3

You can read about it in the RadASMini.rtf file.

KetilO
Posted on 2004-11-14 12:10:03 by KetilO
very cool!
thank you!
Posted on 2004-11-15 03:07:48 by dyna