0

hi, i'm beginner in assembler, i'm just start study this language...

please can someone explain me, what do this two functions?

cbr flags, (1<<pressed) ;Clear status flag
sbr flags,(1<<pressed) ;Set status flag

please if you insert example, it will be only better...:)

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by alcapone11
0

hi, i'm beginner in assembler, i'm just start study this language...

please can someone explain me, what do this two functions?

cbr flags, (1<<pressed) ;Clear status flag
sbr flags,(1<<pressed) ;Set status flag

please if you insert example, it will be only better...:)

These above instructions...which machine do they go with?

0

These above instructions...which machine do they go with?

ATmaga16 do this...but i m think i found it.

can you correct me, if i be wrong

so: cbr flags, (1<<pressed)

flags is status register, so it loads results of operation.
Pressed can be log1 or log0.
So if "pressed" is 0, the first bit will be clear in the flags, and if it is 1, the firts two bits will be clear. if it inst true please correct me.
And the second instrukcion do the same, but it rewrites bits in the flags?

Edited by alcapone11: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.