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

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

$
0
0
the serialin code you can lookup the mcs.lib. i dont know if you realize but serialin and printbin are already asm routines. there are more ways to rome, and for example waitms does a 0 check. when you do not need it, you could remove it. but is it worth all the time? the more asm you add to your code, the less portable the code becomes. and what if you need to alter the code after a few years? xmega have mainly high memory registers which require sts while a normal avr can use OUT. then xmega have extended options so more registers to set and in xmega the uarts are dynamic which mean you can use a variable for the channel which must be passed.

Viewing all articles
Browse latest Browse all 20714

Latest Images

Trending Articles



Latest Images

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