OSDev.org https://forum.osdev.org/ |
|
32 Bit FreeBasic OS https://forum.osdev.org/viewtopic.php?f=2&t=31062 |
Page 1 of 2 |
Author: | trolly [ Fri Dec 09, 2016 4:51 am ] |
Post subject: | 32 Bit FreeBasic OS |
Hi, There is a little presentation of my OS, it need a name, if you have any idea, you can reply to this post * It's written entirely in FreeBasic (an a little bit Assembly, using FASM), using Grub as boot loader * It's a single tasked operating system, the application run in privileged mode (there is no paging, segmentation or security level, the application has full access to the system, like in DOS, but in 32 bit, in graphic mode) * The applications are fully event driven, they do nothing unless the kernel call the "update" method, or if a callback (on button by example) is triggered * There is no "Syscall", the kernel exposes public methods to the app trought a pointer array, at the initialization * The system is multi user, each user has his own configuration and data file * The apps are stored like in Mac, in an .App folder wich contains the app executable, the icon, the data files, etc... * Altought it's single tasked, the user can launch multiple task, and manually switch between them * The design is inspired by the CDE gui * The application use XML to describe gui, the kernel can parse it to generate application interface and all controls (+callback) there's somme screen shots the Login screen Attachment: the apps list: Attachment: Address Attachment:
|
Author: | matt11235 [ Fri Dec 09, 2016 7:20 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
trolly wrote: * The application use XML to describe gui, the kernel can parse it to generate application interface and all controls (+callback) Is this similar to FXML/JavaFX? |
Author: | BrightLight [ Fri Dec 09, 2016 7:35 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
Neat. Is there some code to see or a disk image to download? |
Author: | trolly [ Fri Dec 09, 2016 5:47 pm ] |
Post subject: | Re: 32 Bit FreeBasic OS |
Hi, i'm uploading the code and the binary dist there: the source (include the kernel & apps sources + asm headers + linker scripts + batch files for the build process: http://www.codinfinity.net/NewOS_src.zip 145k the hard drive image (for qemu) http://www.codinfinity.net/NewOS_hd.zip 4M the full archive, including source, hard drive image and toolchain (freebasic compiler + linker + gcc, etc...) runs on windows without extra configuration http://www.codinfinity.net/NewOS.zip 94M |
Author: | trolly [ Fri Dec 09, 2016 5:55 pm ] |
Post subject: | Re: 32 Bit FreeBasic OS |
zenzizenzicube wrote: trolly wrote: * The application use XML to describe gui, the kernel can parse it to generate application interface and all controls (+callback) Is this similar to FXML/JavaFX? i'm not sure, because i dont know FXML or JavaFX, to be short, the gui is programmed in Object Oriented, all widget are described in a class, in the xml the node name are the class names (Window , Button, etc...) the attributes are the properties (Top Left, Width , Text, OnClick, etc...) and the childnode are the children contained in the parent object (example, buttons inside a window) there is by example the xml code for the calc app: Code: <Application>
<WindowView Title="Simple calculator" Width="550" Height="400"> <GridLayout Columns="4" Rows="5" Margin="10"> <TextBox ID="txtValue" Margin="5" ColumnSpan="4" Enabled="false" FontSize="2" TextAlign="Right" /> <Button ID="btn7" Text="7" Margin="5" Click="btn7Click" /> <Button ID="btn8" Text="8" Margin="5" Click="btn8Click" /> <Button ID="btn9" Text="9" Margin="5" Click="btn9Click" /> <Button ID="btnPlus" Text="+" Margin="5" Click="btnPlusClick" /> <Button ID="btn4" Text="4" Margin="5" Click="btn4Click" /> <Button ID="btn5" Text="5" Margin="5" Click="btn5Click" /> <Button ID="btn6" Text="6" Margin="5" Click="btn6Click" /> <Button ID="btnMinus" Text="-" Margin="5" Click="btnMinusClick" /> <Button ID="btn1" Text="1" Margin="5" Click="btn1Click" /> <Button ID="btn2" Text="2" Margin="5" Click="btn2Click" /> <Button ID="btn3" Text="3" Margin="5" Click="btn3Click" /> <Button ID="btnMultiply" Text="*" Margin="5" Click="btnMultiplyClick" /> <Button ID="btnC" Text="C" Margin="5" Click="btnCClick" /> <Button ID="btn0" Text="0" Margin="5" Click="btn0Click" /> <Button ID="btnEqual" Text="=" Margin="5" Click="btnEqualClick" /> <Button ID="btnDivide" Text="/" Margin="5" Click="btnDivideClick" /> </GridLayout> </WindowView> </Application> |
Author: | matt11235 [ Fri Dec 09, 2016 6:05 pm ] |
Post subject: | Re: 32 Bit FreeBasic OS |
trolly wrote: zenzizenzicube wrote: Is this similar to FXML/JavaFX? i'm not sur, because i dont know FXML or JavaFX, to be short, the gui is programmed in Object Oriented, all widget are described in a class, in the xml the node name are the class names (Window , Button, etc...) the attributes are the properties (Top Left, Width , Text, OnClick, etc...) and the childnode are the children contained in the parent object (example, buttons inside a window) That's quite cool, do you also have a way to add a style to the widgets? |
Author: | trolly [ Fri Dec 09, 2016 6:19 pm ] |
Post subject: | Re: 32 Bit FreeBasic OS |
for now, no , style is not supported (only the known properties can be set) if you want to add custom widget you have to implement the class that's herit from the widget (a button by example) and write the draw method for it, latter i'll add skin support |
Author: | Kevin [ Sat Dec 10, 2016 3:42 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
trolly wrote: the hard drive image (for qemu) http://www.codinfinity.net/NewOS_hd.zip 4M I wanted to try this out, but what would be a valid username/password for login? |
Author: | BrightLight [ Sat Dec 10, 2016 4:21 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
Kevin wrote: I wanted to try this out, but what would be a valid username/password for login? Same here. |
Author: | trolly [ Sat Dec 10, 2016 4:42 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
sorry, username : guest password : BONJOUR (case sensitive) |
Author: | Kevin [ Sat Dec 10, 2016 6:54 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
Thanks, that works. Good job, I like your OS. |
Author: | trolly [ Sat Dec 10, 2016 10:31 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
Kevin wrote: Thanks, that works. Good job, I like your OS. Thanks, there is still a lot to do * audio driver, * nethword card driver * tcp/ip & udp stack * settings programs * website * find a cool name for it if you have any suggestion, or if you want to help me (writing drivers, desining website or make mokup for the apps, etc...) don't hesitate to reply |
Author: | Kevin [ Sat Dec 10, 2016 10:44 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
If you want to use some drivers from me (and others), you can just implement the header files of the CDI interface. Interfacing between C and FreeBasic shouldn't be too hard, but it will add a C compiler to your toolchain. |
Author: | trolly [ Sat Dec 10, 2016 11:05 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
Kevin wrote: If you want to use some drivers from me (and others), you can just implement the header files of the CDI interface. Interfacing between C and FreeBasic shouldn't be too hard, but it will add a C compiler to your toolchain. ho thanks, btw, i think it should be easy to port it in freebasic btw, i dont have git, how do i dowload the sources tree? |
Author: | matt11235 [ Sat Dec 10, 2016 11:30 am ] |
Post subject: | Re: 32 Bit FreeBasic OS |
trolly wrote: btw, i dont have git, how do i dowload the sources tree? Go to the commit log and click on the snapshot link. http://git.tyndur.org/?p=cdi.git;a=snap ... bad;sf=tgz |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |