Re: x86 asm bios interrupts in C
Posted: Sat Sep 15, 2018 2:18 pm
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.
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.