flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Need help!

Author
Thread Post new topic Reply to topic
adefeo



Joined: 12 Jan 2004
Posts: 46
Location: Bellmore, Long Island, New York
adefeo
I'm having some trouble with something I want to do to my OS. Here's what I want to accomplish:

-I first want a system where I can prompt the user for a sector number, they can type it in, and then type in a program/text file/etc.
-As a few subfeatures to this system, I'd like to implement a way for users to recall and view/load and run the sectors.

Also, would it be easier to skip this whole raw sector business and impliment FAT12 reading/[later on] writing? The OS is in realmode btw. If anyone has any information or tutorials on how I can implement FAT12 (or the weird sector-system I explained before...), I'd appreciate it. I've googled and come up blank =/

Thanks in advance for any help,
Anthony
Post 10 Feb 2006, 23:42
View user's profile Send private message Visit poster's website AIM Address Reply with quote
RedGhost



Joined: 18 May 2005
Posts: 443
Location: BC, Canada
RedGhost
for floppy operations you can use int $13 or http://www.dex4u.com/images/FloppyDriver.zip (dex4u's floppy driver[works in pmode too])

int $16 can be used to read key input and int $10 can be used for printing (for the console interface)

for a basic prompt you could do something like
Code:
@mainprompt:
   xor ah, ah
   int $16

   cmp al, $0D ;return
   jne @f

   ;return was pressed

@@:
   cmp al, $08  ;backspace
   jne @f

   ;backspace was pressed

@@: ;a normal character print it to the screen etc
    


from there you can parse the command line for the sector number and convert it to a number then read that sector or what have you
Post 11 Feb 2006, 05:13
View user's profile Send private message AIM Address MSN Messenger Reply with quote
adefeo



Joined: 12 Jan 2004
Posts: 46
Location: Bellmore, Long Island, New York
adefeo
Thanks
I'd still like to know how to implement FAT12 though, for the future.
Does anyone know any tutorials or examples on how to do this easily? I hear FAT12 writing drivers can be a nightmare =/

-512
Post 12 Feb 2006, 00:43
View user's profile Send private message Visit poster's website AIM Address Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.