4 Implement an Assembly Language Application on ATtiny104
This application note is intended to implement an assembly language application on ATtiny104. The steps are:
- Create a new Atmel Studio or IAR project.
- The compiler will provide the start-up code.
- Implement the
main
function as:int main(void) { while (1) { } }
- Implement other assembly functions in .s files.
- Call the assembly functions in the
main
function. - Inline Assembly Language can also be used.