|
From: David L. <sna...@ya...> - 2004-02-06 10:39:21
|
Hello. I'm trying to create a fake format program for Windows 9x. It actually reads the sectors of the hard drive, but writes nothing. I've written the part that accesses the disk in assembler because I've never done any hardware manipulation with C in Windows before. I've worked on it all day and have finally gotten it to compile with no unresolved symbols. However, when I execute it in Windows (I'm compiling on FreeBSD), it causes a page fault. I'm thinking maybe I'm still leaving something out to make gcc and nasm play well together. Below are the commands I run to compile the program, and attached are my source files. Any help is appreciated. nasm -f elf format.asm /usr/local/i386-mingw32msvc/bin/gcc -fpack-struct main.c format.o -o format.exe __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html |