Posted on July 18, 2006 at 15:49Hi,
I am using ST72561 chip in my application.
I am carrying subtraction operation on variable g_uch_number_of_unread_characters_pos_bos as follow.
g_uch_number_of_unread_characters_pos_bos--;
assembly code generated for above operation is as follow.
ld a,_g_uch_number_of_unread_characters_pos_bos
sub a,#1
ld _g_uch_number_of_unread_characters_pos_bos,a
I am incrementing same variable in intrrrupt.
while carrying 3 instruction for subtraction operation i want to disable interrupt (while executing 3 instruction, even if interrupt comes, then it should get invoke after executing 3 instruction).
whether following sequence will solve my problem?
SIM
g_uch_number_of_unread_characters_pos_bos--;
RIM
If not, then what is other solution?
regards....
Yogesh