C64 emulation on STM32F429 Discovery board with builtin LCD and USB keyboard support (OTG). More info at davevw.com and/or github.com/davervw
Dependencies: LCD_DISCO_F429ZI BSP_DISCO_F429ZI USBHOST
Diff: emuc64.cpp
- Revision:
- 2:71772e55220f
- Parent:
- 0:90de1cbc8a5f
- Child:
- 3:f978776f810c
--- a/emuc64.cpp Thu Apr 09 14:51:49 2020 +0000 +++ b/emuc64.cpp Thu Apr 09 14:52:40 2020 +0000 @@ -84,18 +84,18 @@ LocalFileSystem local("local"); -static void File_ReadAllBytes(byte* bytes, unsigned int size, const char* filename) -{ - int file; - file = open(filename, O_RDONLY); - if (file < 0) - { - pc.printf("file ""%s"", errno=%d\n", filename, errno); - exit(1); - } - read(file, bytes, size); - close(file); -} +//static void File_ReadAllBytes(byte* bytes, unsigned int size, const char* filename) +//{ +// int file; +// file = open(filename, O_RDONLY); +// if (file < 0) +// { +// pc.printf("file ""%s"", errno=%d\n", filename, errno); +// exit(1); +// } +// read(file, bytes, size); +// close(file); +//} // returns true if BASIC static bool LoadPRG(const char* filename)