Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Branchging intsruction-- BRMI

2009-05-21 by Gmail

Hi,

I want to branch at a certain part of the program when a register (Temp) value is greater than or equal to $FA.
Temp has different values as in not just incrementing.

I did as follow

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Subi Temp, $FA

Brmi Inc_Start    ; Go to Inc start if temp passed the limit 250 ($FA)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:

It is not working as understood, i see other flags are also affected. there is something that i do not see!!

Is this correct or there is other way to do it.

Thanks 

Moataz Hussein

[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.