search for: __vector_21

Displaying 6 results from an estimated 6 matches for "__vector_21".

2020 Mar 31
3
How to add new AVR targets?
Hi Dylan, looks ok now. One thing: the ISR is now: __vector_21: ; @__vector_21 __vector_21$local: sei push r0 push r1 in r0, 63 push r0 clr r0 push r24 lds r24, v1 sts v2, r24 pop r24 pop r0 out 63, r0 pop r1 pop r0 reti There are unneccessary push/pops of r1 and r0 too, since the clr...
2020 Apr 08
2
How to add new AVR targets?
...elm Meier via llvm-dev: > Should I create an issue in bugzilla for this? Just to be reminded ... > > Am 31.03.20 um 09:34 schrieb Wilhelm Meier via llvm-dev: >> Hi Dylan, >> >> looks ok now. >> >> One thing: >> >> the ISR is now: >> >> __vector_21: ; @__vector_21 >> __vector_21$local: >> sei >> push r0 >> push r1 >> in r0, 63 >> push r0 >> clr r0 >> push r24 >> lds r24, v1 >> sts v2, r24 >> pop r24 >> pop r0...
2020 Mar 31
2
How to add new AVR targets?
...um 06:26 schrieb Wilhelm Meier via llvm-dev: > > > Hi Dylan, > > > > > > the following code > > > > > > volatile uint8_t v1; > > > volatile uint8_t v2; > > > > > > __attribute__((interrupt)) void __vector_21(void) { > > > v2 = v1; > > > } > > > > > > produces in C mode: > > > > > > 00000092 <__vector_21>: > > > 92: 80 91 61 00 lds r24, 0x0061 ; 0x800061 <v1> > > > 96:...
2020 Mar 28
2
How to add new AVR targets?
Hi Dylan, the following code volatile uint8_t v1; volatile uint8_t v2; __attribute__((interrupt)) 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>:...
2020 Mar 30
2
How to add new AVR targets?
...ns reti are still missing. > > Whats wrong? > > Am 28.03.20 um 06:26 schrieb Wilhelm Meier via llvm-dev: > > Hi Dylan, > > > > the following code > > > > volatile uint8_t v1; > > volatile uint8_t v2; > > > > __attribute__((interrupt)) 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> &...
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