Help with ASM, and compare and rol. Will always be 8bit in this case.
sbrs r16, 7 would skip if value was 0x80 right? And I'd want to shift left, in this case.
visual exmaple...
Starting...
Learing the wonderful art of ASM but still need help.
Quite glad I initiated this thread, found all of this very helpful..
Ok so the code all works now, here is what I have. There seems to be one little issue left...
Saturday, 20 February 2021 - 15:38
Learing the wonderful art of ASM but still need help. Perfect explanation. sparrow2 , yes I understand now.
El Tangas , sure I get that but what I'm trying to say is this entire block of code is from an old project I didn't...
Learing the wonderful art of ASM but still need help. No, I know the brmi part is messed up, still developing that part. I'm talking about the code westfw posted. For that code I plan to use the same count down from 255, just...
Learing the wonderful art of ASM but still need help.
Ah crap, never mind that. I miss interpreted my debug. The first part of the top is the send command, data start the first time the orange lines show up. So apparently its...
help with ASM. Yes I did. I'm going over each bit with my analyzer to figure out why 529 is needed. So I needed to know where to stick the debug. This seems to work well.
CLR_DBG
...
Will always be 8bit in this case. sbrs r16, 7 would skip if value was 0x80 right? And I'd want to shift left, in this case. visual exmaple... Starting...
Either bad comments orI don't get it. bad comments, thx ;) Thx s'AVR , all good now.
Quite glad I initiated this thread, found all of this very helpful.. Ok so the code all works now, here is what I have. There seems to be one little issue left...
Perfect explanation. sparrow2 , yes I understand now. El Tangas , sure I get that but what I'm trying to say is this entire block of code is from an old project I didn't...
yeah BRMI, is not the question here. I only post all the code as it was asked for, that comment does not belong to that code.
or dec r18 brne someplaceElse, happens ever bit. brne someplace, only after 8 like posted above.
No, I know the brmi part is messed up, still developing that part. I'm talking about the code westfw posted. For that code I plan to use the same count down from 255, just...
yes it works! " "take the branch" on OPPOSITE conditions. " - Right but the branch instruction is inverted also. does brne check if a flag is set...
Ah crap, never mind that. I miss interpreted my debug. The first part of the top is the send command, data start the first time the orange lines show up. So apparently its...
Ok looks like it does count down but does not load back to 8. asm volatile( " clr %0 \n"//clear counter " clr r17 \n"//clear temp " ldi r18,8 \n"//set...
Ok, ill troubleshoot further. I thought I had it right..
Yes I did. I'm going over each bit with my analyzer to figure out why 529 is needed. So I needed to know where to stick the debug. This seems to work well. CLR_DBG ...
Pages