Message board for the users of flat assembler.
> Main > transparent RAMDISK building
edfed 18 Oct 2006, 10:48
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)
size dd ?
used dd ?
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
|18 Oct 2006, 10:48||
vid 18 Oct 2006, 19:48
moving to main... no idea where it belongs, but surely not projects.
by the way, your 3 code blocks at end seems too "transparent"
|18 Oct 2006, 19:48||
edfed 24 Oct 2006, 10:49
i don't know what they do there
but it's not a problem
|24 Oct 2006, 10:49||
sylwek32 24 Oct 2006, 12:23
Thats a ramdisk *lol*
|24 Oct 2006, 12:23||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.