Hello Lander
I made a start at it, for you to continue....
I don't have your circuitboard here so I can't test it.
Just compare all the differences between de include files and then make
the changes to the disassembly file.
.include <tn2313def.inc> ; ATtiny2313 definition file
.equ F_CPU = 16000000 ; put your Xtal frequency here
.equ DESET = 0x0A
.equ STO20 = 0x78
.CSEG
.org 0x0000 ; adres 0x0000
rjmp avr002A ; jump to Start
.org INT0addr ; External Interrupt Request 0
rjmp avr0359
.org INT1addr ; External Interrupt Request 1
rjmp avr035A
.org OVF0addr ; Timer/Counter0 Overflow
rjmp avr0380
.org URXCaddr ; USART, Rx Complete
rjmp avr03AD
; all avr037F are jumps to reti and not needed because the use of org
.org INT_VECTORS_SIZE ; jump over Interrupt Vectors
;Start
avr002A:
ldi r24,low(RAMEND) ; Init STACK (RAMEND == 0xDF)
out SPL,r24
rcall sub03D0
sbis PIND, 2
rjmp avr0043
lds r24, SRAM_START ; (SRAM_START == 0x0060)
lds r25, SRAM_START+1
adiw r24, 0x01
sts SRAM_START, r24
sts SRAM_START+1, r25
lds r24, SRAM_START+2
cpi r24, 0x5D
breq avr0012
ldi r24, 0x5D
sts SRAM_START+2, r24
ldi r16, DESET
sbi PORTB, 7
rjmp avr0012
nop
avr0043: