x86 asm bios interrupts in C

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: x86 asm bios interrupts in C

Post by pvc »

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.
Attachments
Slidoor-OS-master.tar.gz
(16.05 KiB) Downloaded 38 times
alberinfo
Member
Member
Posts: 122
Joined: Wed Aug 29, 2018 4:42 pm

Re: x86 asm bios interrupts in C

Post by alberinfo »

Thanks you!now it works
Post Reply