Yes, I just noticed that dir.h is missing. Sorry, outdated
makefile. :-( version 0.0.5 coming soon!

In the meantime, have a header file:
/* dir.h
 *Model 100 library for Small C 85
 *
 *Willard Goosey
 *[email protected]
 *5/15/2017
 */

//$Id: dir.h,v 1.5 2017/05/17 07:51:46 goosey Exp goosey $

/*the RAM directory is an array of these
 *DIRECTORY points to the start of these
 */

struct dir {
  unsigned char dir_flag;
  char *dir_start;
  char dir_name[8];  //not null terminated!
};

//dir_flag BITs

#define DIR_VALID 0x80
#define DIR_ASCII 0x40
#define DIR_ML    0x20
#define DIR_ROM   0x10
#define DIR_INVIS 0x08
//last 3 bits are reserved, reserved, internal use

/*sys vars already defined in m100vars.h
 *ENDOFDIR = 0xff this value in dir_flag means no more dir entries
 *****actually a define of &ENDDIR not a var
 *ENDDIR = ?? pointer to byte at 0x00ff
 *DIRECTORY = 0xf962 start of RAM file directory
 *FDIR = 0xf9ba points to first file in directory
 *DOSTART = 0xfbae start of .DO files
 *COSTART = 0xfbb0 start of .CO files
 *FILEEND = 0xf88c end of ram file storage
 */

eof dir.h

And now I go do dishes... 

sorry bout dat...
Willard
-- 
Willard Goosey  [email protected]
Socorro, New Mexico, USA
I search my heart and find Cimmeria, land of Darkness and the Night.
  -- R.E. Howard

Reply via email to