Displaying 6 results from an estimated 6 matches for "_z11__vector_21v".
2020 Mar 28
2
How to add new AVR targets?
...pt)) void __vector_21(void) {
v2 = v1;
}
produces in C mode:
00000092 <__vector_21>:
92: 80 91 61 00 lds r24, 0x0061 ; 0x800061 <v1>
96: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <__data_end>
9a: 08 95 ret
and in C++ mode:
00000074 <_Z11__vector_21v>:
74: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <__data_end>
78: 80 93 61 00 sts 0x0061, r24 ; 0x800061 <v2>
7c: 08 95 ret
So, in C++ mode it is not recognized as ISR due to name mangling.
Furthermore there are no register push/pos and no reti....
2020 Mar 30
2
How to add new AVR targets?
...00000092 <__vector_21>:
> > 92: 80 91 61 00 lds r24, 0x0061 ; 0x800061 <v1>
> > 96: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <__data_end>
> > 9a: 08 95 ret
> >
> > and in C++ mode:
> >
> > 00000074 <_Z11__vector_21v>:
> > 74: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <__data_end>
> > 78: 80 93 61 00 sts 0x0061, r24 ; 0x800061 <v2>
> > 7c: 08 95 ret
> >
> > So, in C++ mode it is not recognized as ISR due to name mangling.
> >...
2020 Mar 31
2
How to add new AVR targets?
...lds r24, 0x0061 ; 0x800061 <v1>
> > > 96: 80 93 60 00 sts 0x0060, r24 ; 0x800060
> <__data_end>
> > > 9a: 08 95 ret
> > >
> > > and in C++ mode:
> > >
> > > 00000074 <_Z11__vector_21v>:
> > > 74: 80 91 60 00 lds r24, 0x0060 ; 0x800060
> <__data_end>
> > > 78: 80 93 61 00 sts 0x0061, r24 ; 0x800061 <v2>
> > > 7c: 08 95 ret
> > >
> > > So, in C++ mode it is no...
2020 Mar 31
3
How to add new AVR targets?
...; > > 96: 80 93 60 00 sts 0x0060, r24 ; 0x800060
>> <__data_end>
>> > > 9a: 08 95 ret
>> > >
>> > > and in C++ mode:
>> > >
>> > > 00000074 <_Z11__vector_21v>:
>> > > 74: 80 91 60 00 lds r24, 0x0060 ; 0x800060
>> <__data_end>
>> > > 78: 80 93 61 00 sts 0x0061, r24 ; 0x800061 <v2>
>> > > 7c: 08 95 ret
>> > >
>...
2020 Apr 08
2
How to add new AVR targets?
... 0x0060, r24 ; 0x800060
>>>> <__data_end>
>>>> > > 9a: 08 95 ret
>>>> > >
>>>> > > and in C++ mode:
>>>> > >
>>>> > > 00000074 <_Z11__vector_21v>:
>>>> > > 74: 80 91 60 00 lds r24, 0x0060 ; 0x800060
>>>> <__data_end>
>>>> > > 78: 80 93 61 00 sts 0x0061, r24 ; 0x800061 <v2>
>>>> > > 7c: 08 95 re...
2020 Mar 04
2
How to add new AVR targets?
Am 04.03.20 um 13:28 schrieb Dylan McKay:
>
> * *The C/C++ function needs to be declared with either the calling
> convention avr-interrupt or avr-non-blocking-interrupt.* Skipping
> this step will cause regular ret instructions to be emitted for
> return-from-subroutine, instead of the required reti for interrupt
> handlers. ISRs also have stricter