I’m writing an emulator for the ATMEGA328P, and after looking through the datasheet I could not find the specific address at which the PC is located, a ton of information is mentioned on other registers, SP, SREG etc, the PC itself is talked about but never said where in memory it lays .
I have checked this out from microchip, but since I’m emulating the whole processor it doesn’t obviusly work for me.
https://microchip.my.site.com/s/article/How-to-access-the-Program-Counter-in-AVR
So where in memory is the PC?, also the behaviour of it is kind of hidden, to which address does it point after a RESET for example