Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20563

BASCOM-AVR : Inline assembler: Possible to specify code placement? : REPLY

$
0
0
it is not a good idea to use the vector space for normal code. the RETI protect you so that unwanted interrupts are still handled correctly without causing problems. i have always understood (since 8051) that his was the best way to deal with interrupts. for xmega it is indeed a waste of space. especial with the new $bootvector that will use IVSEL to put the IVR in boot area. so maybe i need to have a new look at it as things might have changed. it is relatively simple to change. i am just not sure if this will result in a safe program. on the other hand when normal code is called unexpectedly, i guess the user will have a clue. i will do a small test and when it works i will add a special directive so it is an option.

Viewing all articles
Browse latest Browse all 20563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>