#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <memcard.h>
#include <string.h>
#include <psx.h>
Functions | |
unsigned char | McReadSector (int card_slot, int sector, unsigned char *buffer) |
Reads a 128-byte sector from a memory card. | |
unsigned char | McWriteSector (int card_slot, int sector, unsigned char *buffer) |
Writes a 128-byte sector to a memory card. | |
unsigned int | McGetStatus (int card_slot) |
Get memory card status. | |
unsigned int McGetStatus | ( | int | card_slot | ) |
Get memory card status.
card_slot | Memory card slot (0 = first slot, 1 = second slot) |
unsigned char McReadSector | ( | int | card_slot, |
int | sector, | ||
unsigned char * | buffer | ||
) |
Reads a 128-byte sector from a memory card.
card_slot | Memory card slot (0 = first slot, 1 = second slot) |
sector | Sector number (0-511) |
buffer | Pointer to data buffer in which data will be stored |
unsigned char McWriteSector | ( | int | card_slot, |
int | sector, | ||
unsigned char * | buffer | ||
) |
Writes a 128-byte sector to a memory card.
card_slot | Memory card slot (0 = first slot, 1 = second slot) |
sector | Sector number (0-511) |
buffer | Pointer to data buffer containing data to write |