I was wondering if it would be possible to trigger a timer overflow interrupt by writing to the TOV0 bit in the TIFR. The TIMSK is set and the Global interreupts are enabled of course.
My attempt to do this in VMLab with the following code for the ATtiny22 has failed to trip the interrupt and resulted the int0 bit in the GIFR flag getting set instead without trigging any interrupt at all.
forever: sbic $16,3 ; Is key pressed? rjmp forever ; No ldi tmp,$02 ; Yes out $38,tmp ; Attempt to manually set TOV0 flag rjmp forever
Is this how the device would actually respond or is this a bug in the device model?