What is code of change directory?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ReBootC
Posts: 6
Joined: Mon Sep 03, 2018 12:09 am

What is code of change directory?

Post 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.
User avatar
thomtl
Member
Member
Posts: 66
Joined: Mon Sep 03, 2018 2:25 am

Re: What is code of change directory?

Post by thomtl »

Do you already have filesystem support? And maybe you want to read Real_Mode_OS_Warning, could you also post your code?
ReBootC
Posts: 6
Joined: Mon Sep 03, 2018 12:09 am

Re: What is code of change directory?

Post 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...
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: What is code of change directory?

Post by pvc »

Be patient my dear Padawan. Where the problem lies you'll see.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: What is code of change directory?

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
ReBootC
Posts: 6
Joined: Mon Sep 03, 2018 12:09 am

Re: What is code of change directory?

Post 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.
StudlyCaps
Member
Member
Posts: 232
Joined: Mon Jul 25, 2016 6:54 pm
Location: Adelaide, Australia

Re: What is code of change directory?

Post 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.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What is code of change directory?

Post by iansjack »

Here is the code

Code: Select all

call chdir
I'll leave you to write the "chdir" subroutine as this is specific to "your" "OS".
FusT
Member
Member
Posts: 91
Joined: Wed Sep 19, 2012 3:43 am
Location: The Netherlands

Re: What is code of change directory?

Post 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".
ReBootC
Posts: 6
Joined: Mon Sep 03, 2018 12:09 am

Re: What is code of change directory?

Post by ReBootC »

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