flat assembler
Message board for the users of flat assembler.

Index > OS Construction > FASM port on SOLAR_OS

Author
Thread Post new topic Reply to topic
bogdanontanu



Joined: 07 Jan 2004
Posts: 403
Location: Sol. Earth. Europe. Romania. Bucuresti
bogdanontanu 11 May 2007, 21:36
Hi all,

I have ported FASM to SOLAR_OS.

Thanks for good interfaces from Thomasz this was kind of easy. So you can add yet another OS where FASM does run Wink

Below you will find an updated Solar_OS binary needed for FASM port and the full sources for the FASM with SOL interfaces in sources/sol32 folder.

BTW the new Solar_OS version does contain an fully operational kernel mode debugger Wink


SOLAR_OS:
-------------------
http://www.oby.ro/os/files/sol_os_2007_05_12_bin.zip

This new SOL version fixes a bug in API_File_Write and is required for FASM port.

FASM ported on SOL (with sources):
-----------------------------------------------
http://www.oby.ro/os/files/fasm_sol_2007_05_12_src.zip

A screen shot is here:
http://www.oby.ro/os/images/sol_os_2007_05_12_fasm_port.png

FASM is fully functional...
I have added a button to debug the compilation process (just in case).

Of course you can run and debug your FASM compiled applications on SOL if you insert an INT3 instruction at application startup or at your interest point.

Just a minor miss feature: On errors it will show you the correct error line number but not the line contents.

This is because SOL does not have a functional lseek() API. The situation will improve when this API is implemented in SOL.

In order to test it:

1) You will have to transfer the sol_fasm.exe binary and the SOL sample files on a FAT32 HDD that can be browsed by SOL (for example in a virtual machine like Virtual PC). You can use another OS to do this preferably one that has "additions" or "shared folders" and allows you to drag and drop files

2)Start SOL

3)Start HDD_Explore application
In HDD Explore application navigate to FASM location and press enter on sol_fasm.exe. A PE Viewer application will run / popup.

Press MAP button and then RUN button in PE Viewer.

At this stage FASM GUI window should appear on screen (like in the screenshot)

The 1,2,3 buttons in FASM GUI will change the command line to suit the 3 sample files inorder to avoid typing the file names in the edit box.

In FASM GUI:
- The "Binary" button can be used to view and run binary output files.
- The "Map PE" button will launch the PE Viewer but this time with your compiled sample (if it is a PE output)... this way you can run the compilation result.

The sample_pe2.asm should create a simple SOL window.

_________________
"Any intelligent fool can make things bigger,
more complex, and more violent.
It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."
Post 11 May 2007, 21:36
View user's profile Send private message Visit poster's website Reply with quote
Hayden



Joined: 06 Oct 2005
Posts: 132
Hayden 12 May 2007, 00:33
The origional solar-os source looks like a direct copy of skelix-os

_________________
New User.. Hayden McKay.


Last edited by Hayden on 15 May 2007, 03:27; edited 1 time in total
Post 12 May 2007, 00:33
View user's profile Send private message Reply with quote
bogdanontanu



Joined: 07 Jan 2004
Posts: 403
Location: Sol. Earth. Europe. Romania. Bucuresti
bogdanontanu 12 May 2007, 01:29
Hayden wrote:

The solar-os source looks like a direct copy of seliks-os


In what kind of dreams?
Post 12 May 2007, 01:29
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 12 May 2007, 03:35
Cool Cool and nice work, i also agree Tomasz Grysztar did a great job of making it easy to port, i wish device driver writers would write drivers in a similar way.
Post 12 May 2007, 03:35
View user's profile Send private message Reply with quote
Hayden



Joined: 06 Oct 2005
Posts: 132
Hayden 15 May 2007, 03:28

_________________
New User.. Hayden McKay.
Post 15 May 2007, 03:28
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 15 May 2007, 12:49
Quote:

The origional solar-os source looks like a direct copy of skelix-os

Just as "Hamlet" is a direct copy of the "Mahabharata" Smile
Post 15 May 2007, 12:49
View user's profile Send private message Yahoo Messenger Reply with quote
Hayden



Joined: 06 Oct 2005
Posts: 132
Hayden 16 May 2007, 08:59
i've written an lba style boot sector for the solar-os bootdisk before, i'll see if i can dig it out and translate it to fasm for bogdan

_________________
New User.. Hayden McKay.
Post 16 May 2007, 08:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.