Page 1 of 1
What is code of change directory?
Posted: Mon Oct 08, 2018 11:46 am
by ReBootC
Hey guys, I need help about Real mode Operating System.
I want the changing directory. Example:
cd WINDOWS
C:\WINDOWS>
And:
A:
A:\
Please help me. Note: I coding Assembly, not C. So please send Assembly code of change directory.
Re: What is code of change directory?
Posted: Mon Oct 08, 2018 12:31 pm
by thomtl
Do you already have filesystem support? And maybe you want to read
Real_Mode_OS_Warning, could you also post your code?
Re: What is code of change directory?
Posted: Mon Oct 08, 2018 1:30 pm
by ReBootC
thomtl wrote:Do you already have filesystem support? And maybe you want to read
Real_Mode_OS_Warning, could you also post your code?
No. My assembly code is this:
https://wiki.osdev.org/Real_mode_assemb ... k_on_my_OS...
Re: What is code of change directory?
Posted: Mon Oct 08, 2018 4:54 pm
by pvc
Be patient my dear Padawan. Where the problem lies you'll see.
Re: What is code of change directory?
Posted: Mon Oct 08, 2018 9:07 pm
by Brendan
Hi,
ReBootC wrote:Hey guys, I need help about Real mode Operating System.
If someone has a mosquito bite, gets annoyed because it's itchy and decides to amputate their own leg with a rusty knife, then asks you for help in cutting through bone; do you:
- a) Hate them so much that you actually explain how to cut through bone like they asked, or
b) Do the right thing and help them avoid a massive mistake
What kind of help would you like?
Cheers,
Brendan
Re: What is code of change directory?
Posted: Mon Oct 08, 2018 10:11 pm
by ReBootC
Brendan wrote:Hi,
ReBootC wrote:Hey guys, I need help about Real mode Operating System.
If someone has a mosquito bite, gets annoyed because it's itchy and decides to amputate their own leg with a rusty knife, then asks you for help in cutting through bone; do you:
- a) Hate them so much that you actually explain how to cut through bone like they asked, or
b) Do the right thing and help them avoid a massive mistake
What kind of help would you like?
Cheers,
Brendan
I want code o change directory only.
Re: What is code of change directory?
Posted: Mon Oct 08, 2018 10:28 pm
by StudlyCaps
ReBootC wrote:
I want code o change directory only.
Your
[1] OS
[2] has
no directories, because it has no concept of a disk, a file, a directory, a file system. You have no current directory cause there are
NO directories and because you have no concept of a "current" anything.
It's like asking how to change gears on a pile of tires.
1. Not yours, you copied it.
2. Not an OS, not every program which bootstraps itself is an OS.
But then you're almost certainly one of the few wingnuts who register every couple months to waste peoples time asking pants-on-head daft question out of spite.
Re: What is code of change directory?
Posted: Tue Oct 09, 2018 1:08 am
by iansjack
Here is the code
I'll leave you to write the "chdir" subroutine as this is specific to "your" "OS".
Re: What is code of change directory?
Posted: Tue Oct 09, 2018 3:19 am
by FusT
To add to the above replies: No one on this forum will write code for you, or at least not for free.
Any implementation is specific to your OS so you need to write it. All of it.
If you run into problems while implementing something or if you need an explanation on some subject we'll be happy to help, but you should at least put some effort into trying yourself instead of copy-pasting some basic bootcode from the wiki and then asking "Write a filesystem implementation for me".
Re: What is code of change directory?
Posted: Fri Oct 12, 2018 11:52 pm
by ReBootC
Sorry for everyone. Now I check one of code.