Hi, I managed to get my Atmega8 to connect to my programmer, and have tried to write a simple program to test it. I wired up 8, 5volt LED's through 390R resistors between port D and the 5 volt rail. I then built the following code, and burnt the hex file to the avrs flash (all using AVRstudio):
.NOLIST .INCLUDE "m8def.inc" .LIST .DEF mpr=R16 LDI mpr,0b01010101 OUT PORTD, mpr
The LED's didn't light, so I tried instead connecting them between ground and portd (reversing their polarity also), but still no luck.
When debugging, it shows R16's value to be 0x55 which is correct, and yet for some reason it isn't working in the circuit.