32 Bit FreeBasic OS
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 the apps list: Address
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 the apps list: Address
Re: 32 Bit FreeBasic OS
Is this similar to FXML/JavaFX?trolly wrote:* The application use XML to describe gui, the kernel can parse it to generate application interface and all controls (+callback)
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Compiler Development Forum
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: 32 Bit FreeBasic OS
Neat.
Is there some code to see or a disk image to download?
Is there some code to see or a disk image to download?
You know your OS is advanced when you stop using the Intel programming guide as a reference.
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
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
Re: 32 Bit FreeBasic OS
i'm not sure, because i dont know FXML or JavaFX,zenzizenzicube wrote:Is this similar to FXML/JavaFX?trolly wrote:* The application use XML to describe gui, the kernel can parse it to generate application interface and all controls (+callback)
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: Select all
<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>
Last edited by trolly on Fri Dec 09, 2016 6:21 pm, edited 1 time in total.
Re: 32 Bit FreeBasic OS
That's quite cool, do you also have a way to add a style to the widgets?trolly wrote:i'm not sur, because i dont know FXML or JavaFX,zenzizenzicube wrote:Is this similar to FXML/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)
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Compiler Development Forum
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
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
Re: 32 Bit FreeBasic OS
I wanted to try this out, but what would be a valid username/password for login?trolly wrote:the hard drive image (for qemu)
http://www.codinfinity.net/NewOS_hd.zip 4M
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: 32 Bit FreeBasic OS
Same here.Kevin wrote:I wanted to try this out, but what would be a valid username/password for login?
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Re: 32 Bit FreeBasic OS
sorry,
username : guest
password : BONJOUR
(case sensitive)
username : guest
password : BONJOUR
(case sensitive)
Re: 32 Bit FreeBasic OS
Thanks, that works.
Good job, I like your OS.
Good job, I like your OS.
Re: 32 Bit FreeBasic OS
Thanks,Kevin wrote:Thanks, that works.
Good job, I like your OS.
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
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.
Re: 32 Bit FreeBasic OS
ho thanks, btw, i think it should be easy to port it in freebasicKevin 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.
btw, i dont have git, how do i dowload the sources tree?
Re: 32 Bit FreeBasic OS
Go to the commit log and click on the snapshot link.trolly wrote:btw, i dont have git, how do i dowload the sources tree?
http://git.tyndur.org/?p=cdi.git;a=snap ... bad;sf=tgz
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Compiler Development Forum