
First, a link to my code repository: 2E26/PIC16-Code-Repository: Code written for PIC16 microcontrollers. All programs are intended to work with x86 and 6502 platforms via serial data transfer.
It was assumed that, by using XC8 compiler, I wasn't actually working in assembly. I changed to MPASM just to see what the difference was, as I've read much about how it was superior to XC8/PIC-ASM. For all I can tell, it's not any different except for assembler directives and other meta-code. The assembly language is still there. My last post was deleted because one of the mods decided I was lying about writing in assembly.
That being said, my latest projects are here for scrutiny. PIC assembly isn't as familiar to me as 6502, as I did some in college with emulators. However, this is my first go at actually putting bits in chips, and everything I've done so far works. I've played with x86 assembly for far longer, and even have more experience in 6502 than PIC. Still, PIC is more fun because it's easier to unite it with electronics, which I'm much better at than computing.
What you'll see if you look at my code is a simple serial monitor. How simple? It echoes what you type in it back to you. That's it. It tests the capability of the MCU to send and receive data from the serial port instead of just send an 'S' over and over. I also wrote a USART library and wrote the same program again with it. I'm probably going to get used to writing libraries for hardware functions in the PIC.
My next moves will be to begin programming EEPROM chips for the 6502 computer. For now, I intend to build it stock (per the wiring diagram on Eater.net/6502 ) and later upgrade to more RAM and a smaller ROM space. My idea is to make the ROM space a boot loader to put larger programs into RAM and then play with them that way. The PIC will be carried on as a peripheral for me to explore other ways of getting code into the 6502 computer.