I am currently trying to program my arduino mega with the Atmel2560 in Assembler.
I have compiled the following code:
LDI R16, 0xFF LDI R17, 0x00 STS DDRH, R16 STS PORTH, R17
And loaded it into the arduino with arv dude
In my opinion it should switch the onboard led off but it is constantly on. What is wrong with my code?