6502 emulator for Commodore 64 ROMs, serial terminal edition for MBED. Recommend terminal echo on, line edit on, caps lock, 115200bps, implicit carriage return on newline, currently non-buffered so don't paste lots of stuff
More details at:
[https://github.com/davervw] [https://techwithdave.davevw.com/2020/03/simple-emu-c64.html]
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)