Blink sketch is now working.

A project log for Arduino ATmega 328 Emulator

This will emulate the AVR code right out of the .ELF file

tehaxor69tehaxor69 04/22/2017 at 23:510 Comments

I finally got the blink sketch running.

To get the blink sketch up and running in the Emulator, I had to get the CPU, Memory Mapper, GPIOs, and the timer overflow/compare IRQs working.

The IRQ and "micros" function use SRAM 0x0007~0x000A as a 32bit timer.

After all that fun stuff, I had an alternating bit in the PORTB register.