Ext Int 0 und 1

.include "m8def.inc"

.org 0x000
rjmp RESET
.org INT0addr
rjmp EXTINT0
.org INT1addr
rjmp EXTINT1

RESET:
ldi r16, HIGH (RAMEND)
out SPH, r16
ldi r16, LOW (RAMEND)
out SPL, r16

ldi r16, 0xff
out DDRB, r16
ldi r16, 0x00
out DDRD, r16

    ldi r16, (1 << ISC01) | (1 << ISC11)
    out MCUCR, r16
    ldi r16, (1 << INT0) | (1 << INT1)
    out GICR, r16

sei

end: rjmp end

EXTINT0:
ldi r16, 0xff
out PORTB, r16
reti

EXTINT1:
ldi r16, 0x00
out PORTB, r16
reti

https://www.ituenix.de/html/vid/IMG_4568.mov