I used the simulator from Atmel Studio 7 for an Mega48 Assembler program.
Here the code, a short loop to wait for a comparator status.
in R16,ACSR ; get comparator status
SBRC R16,ACO ; skip if comparator bit cleared
The simulator shows an odd behavior:
If the register value for R16 is changes just before the SBRC instruction is executed from normal single stepping (step into via F11 key), the old R16 value seems to be used.
However if the SBRC instruction is manually (even if already there) set as the next statement the changed value is accepted.
Such changes did work in older AVR Studio versions, like in January.
Especially for simulating such hardware dependent parts this is rather inconvenient.
Additionally use "set next statement (Ctrl-shift-F10)" is a workaround, but odd.
Is this a bug, or is there some reason to this ?