I am writing an emulator for the Apple II, but when I try to read() a file into an array:
int load_roms(unsigned char userom[])
{
FILE *romfile; /* Create pointer to ROM file */
romfile=fopen(userom,"r"); /* Load apple.rom read-only */
if (!romfile) /* Check for problems opening the file */...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.