When the following is executed in either simulator 1 or 2 in Studio 4, the I/O toggle works but not the register toggle. So can someone tell me what's wrong? Another simulator bug?
Test 1 is for register bit toggling whilst Test 2 is for I/O bit toggling. You choose.
.include "tn2313def.inc" .def Temp = R16 .cseg .org 0x0000 rjmp Reset Reset: ldi Temp, Low(RamEnd) out SPL, Temp ldi Temp, $01 ; out PORTB, Temp Test1: sbrs Temp, 0 sbr Temp, 0 out PORTB, Temp sbrc Temp, 0 cbr Temp, 0 out PORTB, Temp ; rjmp Test1 Test2: sbis PORTB, 0 sbi PORTB, 0 sbic PORTB, 0 cbi PORTB, 0 rjmp Test2