mos-hardware 0.4.0

Hardware register tables and support functions for 8-bit retro computers like the Commodore 64, MEGA65 and others.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void toggle_rom_write_protect();
void closeall(void);
void close(unsigned char fd);

// Returns file descriptor
unsigned char open(char* filename);

// Read upto one sector of data into the supplied buffer.
// Returns the number of bytes actually read.
unsigned short read512(unsigned char* buffer);

// Change working directory
// (only accepts one directory segment at a time
unsigned char chdir(char* filename);

// Change working directory to the root directory
unsigned char chdirroot(void);