delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/10/22/22:01:37

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Trace-PostClient-IP: 68.147.131.211
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: direct access on disk on chip
Organization: Systematic Software
Message-ID: <4lcepv89ib42k1kpum42mmefjmb4b7qc1e@4ax.com>
References: <bn59f4$g8a$1 AT s1 DOT read DOT news DOT oleane DOT net> <7137-Wed22Oct2003164345+0200-eliz AT elta DOT co DOT il>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Lines: 30
Date: Thu, 23 Oct 2003 01:50:12 GMT
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse AT shaw DOT ca
X-Trace: pd7tw2no 1066873812 24.71.223.147 (Wed, 22 Oct 2003 19:50:12 MDT)
NNTP-Posting-Date: Wed, 22 Oct 2003 19:50:12 MDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 22 Oct 2003 16:43:46 +0200 in comp.os.msdos.djgpp, "Eli
Zaretskii" <eliz AT elta DOT co DOT il> wrote:

>> From: "Meynard" <philippe DOT meynard AT vendeeconcept DOT com>
>> Newsgroups: comp.os.msdos.djgpp
>> Date: Wed, 22 Oct 2003 08:52:17 +0200
>> 
>> where can I find source code (in C or assembly) to direct access/read
>> on Disk-on-Chip I want to develop a program who save
>> data in real time.
>
>Please explain what do you mean by ``direct access'' in this context.
>Disk-on-chip pretends to be a hard disk, so I'd expect that BIOS
>functions to access a disk on the sector level should work.  DJGPP has
>biosdisk and _bios_disk functions in its library which should help you
>do that.
>
>If this is not good enough, please tell what else you need.

If it's just memory emulating a disk, standard fdisk and format
commands, and [f]open, [f]read, [f]write, [f]close library
functions should also work. Open a file during startup; close and
open another every so often during quiet times, if there are any.
You then have the benefit of a light weight file system for data
storage and retrieval. 

Thanks. Take care, Brian Inglis 	Calgary, Alberta, Canada
-- 
Brian DOT Inglis AT CSi DOT com 	(Brian dot Inglis at SystematicSw dot ab dot ca)
    fake address		use address above to reply

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019