flat assembler
Message board for the users of flat assembler.

Index > Main > transparent RAMDISK building

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
why do we need a ramdisk?

because it is a memory model who can be structured

Soooo.... if all the system is based on a ramdisk,you can easily integrate the Hard Disks and the I/O ports in its structure

For the moment i work only in the real mode of the ┬ÁP, the segmentation problem is a solution with ramdisk

a sector is 512bytes leng, a segment is 64kbytes leng and the interstice beetwen to segments is 16 bytes

to access a sector (whitout dos INT), you must specify a CHS or LBA parameter
and then transfert the sector in the destination segment

and after you must perform a translation to exploit the file if it's a File System folder.

but when you load a folder in the ram, it's occupies a memory place and is not necessaryly erased after use and can be already in memory before reloading

The goal of this thead is to find a manner to integrate the virtual RAM (DDR,DRAM ...) into the file system and then get more speed and more stability and flexibility

the basis of the system is a field of flags indicates the state of a unit of memory, the sector (512b), therefore, a real address mode segment contains 128 sectors

we need one sector to manage 504*8=4032 sectors
the 12 rest bytes are used to indicate the size of the valid data, the next sector in the field and the numbers of used sectors in the cluster (here, one cluster is 4032 sectors)

field:
size dd ?
used dd ?
flags array
......
......
next sector dd ?

a sector is identified by its CHS or LBA parameters, so we put the parameter in the Virtual LBA form and store it in a Dword

SEE YOU AGAIN FOR THE NEXT TIME
Post 18 Oct 2006, 10:48
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
moving to main... no idea where it belongs, but surely not projects.

by the way, your 3 code blocks at end seems too "transparent"
Post 18 Oct 2006, 19:48
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
i don't know what they do there
but it's not a problem
Post 24 Oct 2006, 10:49
View user's profile Send private message Visit poster's website Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32
Post 24 Oct 2006, 12:23
View user's profile Send private message 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 GitHub, YouTube, Twitter.

Website powered by rwasa.