![](/media/cache/profiles/251bd0442dfcc53b5a761e050f8022b8.50x50_q85.jpg)
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: main.cpp
- Revision:
- 9:b4293b01083b
- Parent:
- 8:519febdce8db
--- a/main.cpp Wed Apr 15 05:15:07 2020 +0000 +++ b/main.cpp Fri Apr 17 09:15:50 2020 +0000 @@ -35,17 +35,33 @@ #include "emuc64.h" #include "emu6502.h" +#ifdef LOCAL_LOAD +#include <LocalFileSystem.h> +LocalFileSystem local("local"); +#endif + Serial pc(USBTX, USBRX, 115200); +//Serial pc(p9, p10, 115200); int main(/*int argc, char* argv[]*/) { pc.printf("\n"); - pc.printf("c-simple-emu-cbm version 1.6\n"); + pc.printf("c-simple-emu-cbm version 1.7 for Mbed\n"); pc.printf("Copyright (c) 2020 by David R. Van Wagner\n"); - pc.printf("MIT License\n"); + pc.printf("Open Source - MIT License\n"); pc.printf("github.com/davervw\n"); pc.printf("\n"); - //StartupPRG = "/local/guess2.prg"; + pc.printf("Contains other licensed software\n"); + pc.printf(" ARM MBED OS\n"); + pc.printf("\n"); + pc.printf("Commodore ROMs not licensed\n"); + pc.printf("\n"); + +#ifdef LOCAL_LOAD + // note: requires a file system implementation (SD, Mbed MSD, etc.) + StartupPRG = "/local/startup.prg"; +#endif + C64_Init("/local/basic", "/local/chargen", "/local/kernal"); ResetRun(ExecutePatch); return 0;