Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions
d81access.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define D81_SIZE   819200
 
#define PRG_MIN_SIZE   16
 
#define PRG_MAX_SIZE   0xD700
 
#define D81ACCESS_EMPTY   0
 
#define D81ACCESS_IMG   1
 
#define D81ACCESS_PRG   2
 
#define D81ACCESS_DIR   4
 
#define D81ACCESS_CALLBACKS   8
 
#define D81ACCESS_RO   0x100
 
#define D81ACCESS_AUTOCLOSE   0x200
 
#define D81ACCESS_FAKE64   0x400
 
#define D81ACCESS_D64   0x800
 
#define D81ACCESS_D71   0x1000
 
#define D81ACCESS_D65   0x2000
 

Functions

void d81access_cb_chgmode (const int which, const int mode)
 
int d81access_read_sect (const int which, Uint8 *buffer, const Uint8 side, const Uint8 track, const Uint8 sector, const int sector_size)
 
int d81access_write_sect (const int which, Uint8 *buffer, const Uint8 side, const Uint8 track, const Uint8 sector, const int sector_size)
 
void d81access_init (void)
 
int d81access_get_mode (int which)
 
void d81access_close (int which)
 
void d81access_close_all (void)
 
void d81access_attach_fd (int which, int fd, off_t offset, int mode)
 
int d81access_attach_fsobj (int which, const char *fn, int mode)
 
Uint8d81access_create_image (Uint8 *img, const char *diskname, const int name_from_fn)
 
int d81access_create_image_file (const char *fn, const char *diskname, const int do_overwrite, const char *cry)
 

Macro Definition Documentation

◆ D81_SIZE

#define D81_SIZE   819200

Definition at line 22 of file d81access.h.

◆ D81ACCESS_AUTOCLOSE

#define D81ACCESS_AUTOCLOSE   0x200

Definition at line 38 of file d81access.h.

◆ D81ACCESS_CALLBACKS

#define D81ACCESS_CALLBACKS   8

Definition at line 36 of file d81access.h.

◆ D81ACCESS_D64

#define D81ACCESS_D64   0x800

Definition at line 40 of file d81access.h.

◆ D81ACCESS_D65

#define D81ACCESS_D65   0x2000

Definition at line 42 of file d81access.h.

◆ D81ACCESS_D71

#define D81ACCESS_D71   0x1000

Definition at line 41 of file d81access.h.

◆ D81ACCESS_DIR

#define D81ACCESS_DIR   4

Definition at line 35 of file d81access.h.

◆ D81ACCESS_EMPTY

#define D81ACCESS_EMPTY   0

Definition at line 32 of file d81access.h.

◆ D81ACCESS_FAKE64

#define D81ACCESS_FAKE64   0x400

Definition at line 39 of file d81access.h.

◆ D81ACCESS_IMG

#define D81ACCESS_IMG   1

Definition at line 33 of file d81access.h.

◆ D81ACCESS_PRG

#define D81ACCESS_PRG   2

Definition at line 34 of file d81access.h.

◆ D81ACCESS_RO

#define D81ACCESS_RO   0x100

Definition at line 37 of file d81access.h.

◆ PRG_MAX_SIZE

#define PRG_MAX_SIZE   0xD700

Definition at line 29 of file d81access.h.

◆ PRG_MIN_SIZE

#define PRG_MIN_SIZE   16

Definition at line 24 of file d81access.h.

Function Documentation

◆ d81access_attach_fd()

void d81access_attach_fd ( int  which,
int  fd,
off_t  offset,
int  mode 
)

Definition at line 145 of file d81access.c.

◆ d81access_attach_fsobj()

int d81access_attach_fsobj ( int  which,
const char *  fn,
int  mode 
)

Definition at line 173 of file d81access.c.

◆ d81access_cb_chgmode()

void d81access_cb_chgmode ( const int  which,
const int  mode 
)

Definition at line 282 of file commodore_65.c.

◆ d81access_close()

void d81access_close ( int  which)

Definition at line 78 of file d81access.c.

Here is the caller graph for this function:

◆ d81access_close_all()

void d81access_close_all ( void  )

Definition at line 100 of file d81access.c.

Here is the call graph for this function:

◆ d81access_create_image()

Uint8* d81access_create_image ( Uint8 img,
const char *  diskname,
const int  name_from_fn 
)

Definition at line 604 of file d81access.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ d81access_create_image_file()

int d81access_create_image_file ( const char *  fn,
const char *  diskname,
const int  do_overwrite,
const char *  cry 
)

Definition at line 701 of file d81access.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ d81access_get_mode()

int d81access_get_mode ( int  which)

Definition at line 72 of file d81access.c.

◆ d81access_init()

void d81access_init ( void  )

Definition at line 56 of file d81access.c.

◆ d81access_read_sect()

int d81access_read_sect ( const int  which,
Uint8 buffer,
const Uint8  side,
const Uint8  track,
const Uint8  sector,
const int  sector_size 
)

Definition at line 539 of file d81access.c.

◆ d81access_write_sect()

int d81access_write_sect ( const int  which,
Uint8 buffer,
const Uint8  side,
const Uint8  track,
const Uint8  sector,
const int  sector_size 
)

Definition at line 572 of file d81access.c.