New Page Xercise - In Depth AVR Assembly Coding Practices - section update
These exercises are designed with ease in heart, but still requires the one to fully understand everything. They serve as good practice and extra high quality examples. Coding in assembly really absolutely requires one to understand and remember everything.
-Write a loop using Z-flag
-Write a loop using C-flag
-Write a loop using N-flag
-Write a loop using H-flag
-Write a loop using V-flag
-Write a loop using SBRS – Skip if Bit in Register is Set
-Write a loop using SBIS – Skip if Bit in I/O Register is Set
-Write a most efficient method to load 0x88 to all 32 GPRs
-Write first 10 flash address to first 10 SRAM address
-Push all IO registers into stack
-Write a 2Hz LED blinker using timer0 with 8MHz clock
-Write a delay function with a 32-bit runtime parameter
-Use "mul" instruction to create a LED chaser with the delay function
-Use "rol" and "lsl" to create a 16-bit LED chaser