OSDev.org https://forum.osdev.org/ |
|
x86 asm bios interrupts in C https://forum.osdev.org/viewtopic.php?f=1&t=33165 |
Page 6 of 6 |
Author: | pvc [ Sat Sep 15, 2018 2:18 pm ] | ||
Post subject: | Re: x86 asm bios interrupts in C | ||
It finally works. It is still a mess but at least compiles and works. The problem was that you've completely mixed up .c and .h files. In short: In .h files you should declare functions and stuff. In .c files you should define functions. That means you should never put function bodies in .h file nor you should ever do #include "something.c" (unless you REALLY know what you're doing) or you'll get yourself into huge mess after a short while. There were also some preprocessor and symbol conflicts with my and your existing code. You should consider reading something about C (and general) coding practices and how preprocessing, compiling and linking processes work.
|
Author: | alberinfo [ Sat Sep 15, 2018 2:46 pm ] |
Post subject: | Re: x86 asm bios interrupts in C |
Thanks you!now it works |
Page 6 of 6 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |