flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
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? ![]() 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 |
|||
![]() |
|
revolution 10 Mar 2014, 11:59
sid123 wrote: Plus FASMARM has the same dependencies as FASM right? |
|||
![]() |
|
sid123 13 Mar 2014, 11:25
Almost there, getting #GP for no reason
![]() ![]() _________________ "Those who can make you believe in absurdities can make you commit atrocities" -- Voltaire https://github.com/Benderx2/R3X XD |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.