English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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?

2007-02-12 16:43:32 · 3 answers · asked by Princess Jasmine 2 in Computers & Internet Programming & Design

3 answers

100ms = .1sec. so in 60 seconds there are 600, 100ms increments (60 / .1 = 600). that comes out to 258hex and will easily fit into a 16 bit register.

2007-02-13 01:15:33 · answer #1 · answered by justme 7 · 0 0

NO familiar for pseudocode syntax exists, as a software in pseudocode isn't an executable software. = based on the author, pseudocode would consequently variety broadly in type, from an intensive to-suitable imitation of a actual programming language at one severe, to an define coming near formatted prose on the different.

2016-10-02 01:36:09 · answer #2 · answered by ? 4 · 0 0

uhmm. this sounds like homework do it yourself. I doubt anyone is going to take the time to write in assembly(a very arduous task) for you.

2007-02-12 16:48:11 · answer #3 · answered by iammisc 5 · 0 1

fedest.com, questions and answers