
Control your pico from c64 basic
my pet project is a small 6502-based virtual computer running on a Raspberry Pi Pico / Pico 2
Current features include:
- 6502 CPU emulator
- Commodore BASIC support with custom BASIC commands
- Memory-mapped GPIO
- PWM
- I²C
- DMA engine
- PETSCII/ASCII compatible display
i dont want to emulate the whole machine, but to create a new retro-style development platform that keeps the simplicity of programming a 6502 while taking advantage of modern microcontroller, most of the features still need future testing.
There's still a lot of work to do (littleFS (like in micropython), debugger, coprocessor API, etc.)
https://github.com/atrex66/picoc64plus
the basic extensions make it allow to use hexadecimal numbers
to enable Basic Extensions: SYS 49152
GPIO control (sample to control the pico led):
PINMODE 25,1
PINOUT 25,1
PINOUT 25,1
DMA control (Sample DMA config, Fill the screen with the data on the memory location $FB):
DMASIZE 0
DMAINCR 1,0
DMACPY $FB, $0400, 1000
DMA control (copy one block of memory location to another location):
DMASIZE 0
DMAINCR 1,1
DMACPY $0400, $8000, 1000