Sebastian - 2005-04-27

Hello,
I'm have problems when running this Program:

.include "m8def.inc"
.def temp = R16 ; temporrer Register
.def dioden = R19
.equ time =252
;interrupts Definitionen

.org 0x000
    rjmp RESET    ; Reset Vector
.org OVF0addr   
    rjmp ISR_timer0_ov ; Timer 0 Overflow Vector
   
ISR_timer0_ov:
    com dioden
    out PORTC,dioden
    ldi temp,time
    out TCNT0,temp
    reti
           
RESET:    ;Program
    ldi dioden,0xff
    ldi temp,HIGH(RAMEND)    ;Stack einrichten High byte
    out SPH,temp
    ldi temp,LOW(RAMEND)    ;Stack dito nur LOW byte
    out SPL,temp
    ldi temp,1<<TOIE0
    out TIMSK,temp        ;berlauf interrupt erlauben
    ldi temp,time
    out TCNT0,temp    ;zeitbasis laden
    ldi temp,1<<CS00;setze prescalerauf 1024
    out TCCR0,temp
    sei
main:
            rjmp main   

When a overflow occurs in the timer0, the avr_simulator does no Interrupt and does not set tov0 bit to 1
Studio 4 simulating this corectly
The Device is ATMEGA 8
What is wrong?

Sebastian