assembly - How to stop a ASM loop? -
After hitting a fixed hex value or a certain number of iterations after the pay scale, how do I break a loop in ASM The number of my counters hit 0? Or is this the only way?
Cheers /
You have a few ways to loops (and stop) in Avr asm ) ... but try to know something about " brne " or " breq ". Open your ARR data sheet, set the instruction and branch See instructions, most of these instructions are based in your SREG register! ( You can use sub-branch or CAP to turn on a flagging flag (SREG), and prevent loop with branch instructions, in most cases "branch "SERG Based on the Decision" and SREG are based on your past actions) If you have a specific problem in your code, please share it with us :)
Comments
Post a Comment