so sieht das ir-rc5-dateneinlesen bei mir aus mit int0.
ich benutze fastavr-basic. vielleicht kann man das in Bascom übertragen.

Interrupt Int0(), Save 2
Disable Int0
Enable Interrupts
RC5(ir_adr, ir_Command)
If ir_command=62 Then
motor_wert=120
robby_vor()
End If
If ir_command=61 Then
motor_wert=80
robby_zurueck()
End If
If ir_command=60 Then
motor_wert=60
robby_links_encoder()
End If
If ir_command=59 Then
motor_wert=60
robby_rechts_encoder()
End If
If ir_command=63 Then robby_aus()
Reset Int0
Enable Int0
End Interrupt

mfg pst