32 Bit FreeBasic OS

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
trolly
Member
Member
Posts: 52
Joined: Tue Mar 25, 2008 12:26 pm

32 Bit FreeBasic OS

Post by trolly »

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
Login screen
Login screen
the apps list:
Applications list
Applications list
Address
address book
address book
User avatar
matt11235
Member
Member
Posts: 286
Joined: Tue Aug 02, 2016 1:52 pm
Location: East Riding of Yorkshire, UK

Re: 32 Bit FreeBasic OS

Post by matt11235 »

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?
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: 32 Bit FreeBasic OS

Post by BrightLight »

Neat.
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.
trolly
Member
Member
Posts: 52
Joined: Tue Mar 25, 2008 12:26 pm

Re: 32 Bit FreeBasic OS

Post by trolly »

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
trolly
Member
Member
Posts: 52
Joined: Tue Mar 25, 2008 12:26 pm

Re: 32 Bit FreeBasic OS

Post by trolly »

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: 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.
User avatar
matt11235
Member
Member
Posts: 286
Joined: Tue Aug 02, 2016 1:52 pm
Location: East Riding of Yorkshire, UK

Re: 32 Bit FreeBasic OS

Post by matt11235 »

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?
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
trolly
Member
Member
Posts: 52
Joined: Tue Mar 25, 2008 12:26 pm

Re: 32 Bit FreeBasic OS

Post by trolly »

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
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: 32 Bit FreeBasic OS

Post by Kevin »

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? :)
Developer of tyndur - community OS of Lowlevel (German)
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: 32 Bit FreeBasic OS

Post by BrightLight »

Kevin wrote:I wanted to try this out, but what would be a valid username/password for login? :)
Same here. :)
You know your OS is advanced when you stop using the Intel programming guide as a reference.
trolly
Member
Member
Posts: 52
Joined: Tue Mar 25, 2008 12:26 pm

Re: 32 Bit FreeBasic OS

Post by trolly »

sorry,


username : guest
password : BONJOUR

(case sensitive)
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: 32 Bit FreeBasic OS

Post by Kevin »

Thanks, that works.

Good job, I like your OS. :)
Developer of tyndur - community OS of Lowlevel (German)
trolly
Member
Member
Posts: 52
Joined: Tue Mar 25, 2008 12:26 pm

Re: 32 Bit FreeBasic OS

Post by trolly »

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
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: 32 Bit FreeBasic OS

Post by Kevin »

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.
Developer of tyndur - community OS of Lowlevel (German)
trolly
Member
Member
Posts: 52
Joined: Tue Mar 25, 2008 12:26 pm

Re: 32 Bit FreeBasic OS

Post by trolly »

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 :D

btw, i dont have git, how do i dowload the sources tree?
User avatar
matt11235
Member
Member
Posts: 286
Joined: Tue Aug 02, 2016 1:52 pm
Location: East Riding of Yorkshire, UK

Re: 32 Bit FreeBasic OS

Post by matt11235 »

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
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Post Reply