Home | Reviews | GUIpedia | Forum | Fun500
ksr | FreeBASIC OS tutorialhttp://wiki.osdev.org/FreeBasic_Barebones
Anyone seen this before? Looks interesting. | 2010-02-08 | 9:43 PM |
aguma | Re:FreeBASIC OS tutorialyeah I saw it, never got it to work. stuck with asm + c. | 2010-02-08 | 10:11 PM |
ksr | Re:FreeBASIC OS tutorialYeah, it doesn't really seem to be worth it. So have you played around with OS development much? I have some free time and I'm tempted to start making a serious effort. I don't like C though so it's probably going to end up being mostly asm. | 2010-02-08 | 10:30 PM |
aguma | Re:FreeBASIC OS tutorialWell I don't really have time anymore with school and debate and violin and piano and writing and life, but I used to play around with it OS devving a lot.
If you want I can give you the source to my unfinished 16-bit asm os (bootloader+kernel), and an explanation to how it works.
Also, here's a pretty good tutorial on writing an OS: http://www.brokenthorn.com/Resources/OSDevIndex.html | 2010-02-08 | 11:23 PM |
ksr | Re:FreeBASIC OS tutorialThanks for the link. And that'd be great if you could send me your source. | 2010-02-09 | 12:21 AM |
Brandon | Re:FreeBASIC OS tutorialI'm always looking for a new OS to test out, if there is anything I can help with just let me know. | 2010-02-09 | 10:45 AM |
bongomeno | Re:FreeBASIC OS tutorialThis tutorial looks very useful...
I do not know freebasic | 2010-02-09 | 6:43 PM |
ksr | Re:FreeBASIC OS tutorialaguma, did you get as far as loading executable files? real mode memory management is giving me a massive headache. | 2010-02-12 | 6:01 PM |
aguma | Re:FreeBASIC OS tutorialyeah I just loaded programs to 0x1000, although I don't remember if that's the offset, segment, or both :P
you can have the source if you want:
http://uppit.com/v/LTGT8Z0B
how it works:
in your files, the first four bytes are "TYPE"+NULL. if type is "TEXT", it views the file, and if it's "EXEC" it runs the file. You'll have to add those bytes manually with a hex editor. functions aren't called through the kernel, they just have to include my library in their programs.
oh, and ret ends a program in userland.
if you want more info, just ask. i realize how vague this is :P | 2010-02-12 | 6:47 PM |
ksr | Re:FreeBASIC OS tutorialThanks a lot, some things are already clearer. I'm sure I'll have plenty of questions when I've read through your code some more.
Just successfully booted from a FAT32 USB drive (boot sector only, no file system at this stage). I don't think I'll bother supporting FAT12 and just concentrate on FAT32. | 2010-02-13 | 12:05 AM |
Hardware
2021 Brandon Cornell