Alius 6502 - Software
All the code you need
Open source ROM files and demo code
The Alius project has a fully functional ROM which has support for loading files from a FAT32 SDcard, the ROM has support for simple I/O functions.
The GitHub project also has several demo programs which you can just run or use as a base for your own experiments.