I've just discovered that the arduino supports inline assembly.
guide to avr Assembler commands
http://www.avr-asm-tutorial.net/
examble:
asm volatile(
// DDRC = 0010 0000, ie. PORTB5 is OUT
"ldi r16,48\n"
"out 0x27,r16\n"
);
No comments:
Post a Comment