Sana Srikar
Newbie level 5

can we load a value directly into internal sram of atmega128 does avr architecture support that ?
2. what is wrong with the instruction sts ocro,r23 ?
i was reading the book mazzidi and i got stuck in these two quesitons. started avr a day back and i was trying to solve the problems ......
1. for the first one i thought this is it because there is no enough space in opcode for it like we cannot use ldi to r0-r15...am i correct and
for the second one i thought was sts requires 16 bit address but ocro only gives 8 bit address(within 64)
2. what is wrong with the instruction sts ocro,r23 ?
i was reading the book mazzidi and i got stuck in these two quesitons. started avr a day back and i was trying to solve the problems ......
1. for the first one i thought this is it because there is no enough space in opcode for it like we cannot use ldi to r0-r15...am i correct and
for the second one i thought was sts requires 16 bit address but ocro only gives 8 bit address(within 64)