OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:21 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: What is code of change directory?
PostPosted: Mon Oct 08, 2018 11:46 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Mon Oct 08, 2018 12:31 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 03, 2018 2:25 am
Posts: 66
Do you already have filesystem support? And maybe you want to read Real_Mode_OS_Warning, could you also post your code?


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Mon Oct 08, 2018 1:30 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Mon Oct 08, 2018 4:54 pm 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
Be patient my dear Padawan. Where the problem lies you'll see.


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Mon Oct 08, 2018 9:07 pm 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 8561
Location: At his keyboard!
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.


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Mon Oct 08, 2018 10:11 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Mon Oct 08, 2018 10:28 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Tue Oct 09, 2018 1:08 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
Here is the code
Code:
call chdir

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


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Tue Oct 09, 2018 3:19 am 
Offline
Member
Member

Joined: Wed Sep 19, 2012 3:43 am
Posts: 91
Location: The Netherlands
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".


Top
 Profile  
 
 Post subject: Re: What is code of change directory?
PostPosted: Fri Oct 12, 2018 11:52 pm 
Offline

Joined: Mon Sep 03, 2018 12:09 am
Posts: 6
Sorry for everyone. Now I check one of code. :oops:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], SemrushBot [Bot] and 54 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group