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]
cbmconsole.h@0:90de1cbc8a5f, 2020-04-09 (annotated)
- Committer:
- davervw
- Date:
- Thu Apr 09 14:45:56 2020 +0000
- Revision:
- 0:90de1cbc8a5f
- Child:
- 4:0461c100cbbb
github.com/davervw/c-simple-emu6502-cbm ported to LPC1768
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
davervw | 0:90de1cbc8a5f | 1 | // cbmconsole.h - Commodore Console Emulation |
davervw | 0:90de1cbc8a5f | 2 | // |
davervw | 0:90de1cbc8a5f | 3 | //////////////////////////////////////////////////////////////////////////////// |
davervw | 0:90de1cbc8a5f | 4 | // |
davervw | 0:90de1cbc8a5f | 5 | // c-simple-emu-cbm (C Portable Version) |
davervw | 0:90de1cbc8a5f | 6 | // C64/6502 Emulator for Microsoft Windows Console |
davervw | 0:90de1cbc8a5f | 7 | // |
davervw | 0:90de1cbc8a5f | 8 | // MIT License |
davervw | 0:90de1cbc8a5f | 9 | // |
davervw | 0:90de1cbc8a5f | 10 | // Copyright(c) 2020 by David R.Van Wagner |
davervw | 0:90de1cbc8a5f | 11 | // davevw.com |
davervw | 0:90de1cbc8a5f | 12 | // |
davervw | 0:90de1cbc8a5f | 13 | // Permission is hereby granted, free of charge, to any person obtaining a copy |
davervw | 0:90de1cbc8a5f | 14 | // |
davervw | 0:90de1cbc8a5f | 15 | // of this software and associated documentation files (the "Software"), to deal |
davervw | 0:90de1cbc8a5f | 16 | // in the Software without restriction, including without limitation the rights |
davervw | 0:90de1cbc8a5f | 17 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
davervw | 0:90de1cbc8a5f | 18 | // copies of the Software, and to permit persons to whom the Software is |
davervw | 0:90de1cbc8a5f | 19 | // furnished to do so, subject to the following conditions: |
davervw | 0:90de1cbc8a5f | 20 | // |
davervw | 0:90de1cbc8a5f | 21 | // The above copyright notice and this permission notice shall be included in all |
davervw | 0:90de1cbc8a5f | 22 | // copies or substantial portions of the Software. |
davervw | 0:90de1cbc8a5f | 23 | // |
davervw | 0:90de1cbc8a5f | 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
davervw | 0:90de1cbc8a5f | 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
davervw | 0:90de1cbc8a5f | 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE |
davervw | 0:90de1cbc8a5f | 27 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
davervw | 0:90de1cbc8a5f | 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
davervw | 0:90de1cbc8a5f | 29 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
davervw | 0:90de1cbc8a5f | 30 | // SOFTWARE. |
davervw | 0:90de1cbc8a5f | 31 | // |
davervw | 0:90de1cbc8a5f | 32 | //////////////////////////////////////////////////////////////////////////////// |
davervw | 0:90de1cbc8a5f | 33 | |
davervw | 0:90de1cbc8a5f | 34 | #pragma once |
davervw | 0:90de1cbc8a5f | 35 | |
davervw | 0:90de1cbc8a5f | 36 | extern void CBM_Console_WriteChar(unsigned char c); |
davervw | 0:90de1cbc8a5f | 37 | extern unsigned char CBM_Console_ReadChar(void); |
davervw | 0:90de1cbc8a5f | 38 | extern void CBM_Console_Push(const char* s); |
davervw | 0:90de1cbc8a5f | 39 |