flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Getting ready for FASM port. :)

Author
Thread Post new topic Reply to topic
sid123



Joined: 30 Jul 2013
Posts: 339
Location: Asia, Singapore
sid123 10 Mar 2014, 11:25
Hello,
Well the good news has finally come, I've got fat16 write support and my fat driver is complete with the exception if rmdir (Remove Directory) which should be implemented by today, FASM doesn't need it, so leave that for now.
Well I just want to discuss with you guys if there are any changes needed.
ZICRONIX FILE ACCESS
In the operating system the root directory contains the kernel, ramdisk, and other modules
like fonts, drivers etc. and are totally inaccessible to the applications and the user. The directory /usr is set to default and contains the user files. The one and only environment variable is usr/bin which is meant for executables of applications. Hence an absolute file name is something like:
Code:
usr/dir/dir/file.txt    

You can set EAX to this variable and call chdir.
However for example if the programming was executed from another directory (not from usr)
then the current directory in the above format is passed in EDI.
You can tell chdir to switch to local directories if you know that you're in your required parent directory by:
Code:
dir/file.txt    

Remember that the arguments passed by the shell are capital letters!
Commands supported:
mkfile - Creates a file in the present directory (DOES NOT SUPPORT, pathnames)
rmfile - Removes a file (same as mkfile)
mkdir - Creates a Directory, same as mkfile
chdir - Switches to a directory
load file - Loads a file, (If pathname is given good, if not searches in the present directory
write file - Writes to a file (Sames as loadfile)
lseek - Same as UNIX
prints - Prints a string! No formatting
itoa32 - 32 bit integer to string
atoi32 - String to 32 bit integer
getmem - Get all usable RAM on system.
malloc - Allocate Memory (Does basically nothing, simply increments memory space, passes
EAX)
So am I ready for the port? Smile Hope so.
Plus FASMARM has the same dependencies as FASM right?

_________________
"Those who can make you believe in absurdities can make you commit atrocities" -- Voltaire https://github.com/Benderx2/R3X
XD
Post 10 Mar 2014, 11:25
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 10 Mar 2014, 11:59
sid123 wrote:
Plus FASMARM has the same dependencies as FASM right?
Yes.
Post 10 Mar 2014, 11:59
View user's profile Send private message Visit poster's website Reply with quote
sid123



Joined: 30 Jul 2013
Posts: 339
Location: Asia, Singapore
sid123 13 Mar 2014, 11:25
Almost there, getting #GP for no reason Razz
Image

_________________
"Those who can make you believe in absurdities can make you commit atrocities" -- Voltaire https://github.com/Benderx2/R3X
XD
Post 13 Mar 2014, 11:25
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.