OSDev.org
https://forum.osdev.org/

What is code of change directory?
https://forum.osdev.org/viewtopic.php?f=1&t=33222
Page 1 of 1

Author:  ReBootC [ Mon Oct 08, 2018 11:46 am ]
Post subject:  What is code of change directory?

Hey guys, I need help about Real mode Operating System.

I want the changing directory. Example:
Quote:
cd WINDOWS
C:\WINDOWS>


And:
Quote:
A:
A:\


Please help me. Note: I coding Assembly, not C. So please send Assembly code of change directory.

Author:  thomtl [ Mon Oct 08, 2018 12:31 pm ]
Post subject:  Re: What is code of change directory?

Do you already have filesystem support? And maybe you want to read Real_Mode_OS_Warning, could you also post your code?

Author:  ReBootC [ Mon Oct 08, 2018 1:30 pm ]
Post subject:  Re: What is code of change directory?

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 ... on_my_OS...

Author:  pvc [ Mon Oct 08, 2018 4:54 pm ]
Post subject:  Re: What is code of change directory?

Be patient my dear Padawan. Where the problem lies you'll see.

Author:  Brendan [ Mon Oct 08, 2018 9:07 pm ]
Post subject:  Re: What is code of change directory?

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

Author:  ReBootC [ Mon Oct 08, 2018 10:11 pm ]
Post subject:  Re: What is code of change directory?

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.

Author:  StudlyCaps [ Mon Oct 08, 2018 10:28 pm ]
Post subject:  Re: What is code of change directory?

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.

Author:  iansjack [ Tue Oct 09, 2018 1:08 am ]
Post subject:  Re: What is code of change directory?

Here is the code
Code:
call chdir

I'll leave you to write the "chdir" subroutine as this is specific to "your" "OS".

Author:  FusT [ Tue Oct 09, 2018 3:19 am ]
Post subject:  Re: What is code of change directory?

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".

Author:  ReBootC [ Fri Oct 12, 2018 11:52 pm ]
Post subject:  Re: What is code of change directory?

Sorry for everyone. Now I check one of code. :oops:

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/