OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 10:47 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 77 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Re: x86 asm bios interrupts in C
PostPosted: Sat Sep 15, 2018 2:18 pm 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
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 15 times
Top
 Profile  
 
 Post subject: Re: x86 asm bios interrupts in C
PostPosted: Sat Sep 15, 2018 2:46 pm 
Offline
Member
Member

Joined: Wed Aug 29, 2018 4:42 pm
Posts: 122
Thanks you!now it works


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 77 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], osdev199 and 776 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group