View Single Post
  #1 (permalink)  
Old 06-10-2007, 05:42 PM
Eng.Chick
Posts: n/a
[SOLVED] I wrote pseudo code for program.. i just need someone translate it to

assembly... www.8052.com? I wrote pseudo code for program.. i just need someone translate it to assembly... we have to find beat per minute and we have the period... so if we count the number of period in each 60 second thats our BPM...
BPM=0
Total time= 0
loop totaltime=totaltime+period
bpm=bpm+1
if total time < 60 s go to loop
done

the period is given in 100ms unit (16 bits) so 60 sec = .6 *10^6 which is more than 16 bit...what should we do?

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!