This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Calculating Execution Time

Dear Sir,

Im a begginer for a assembly program like this in keil,

Mov R0,#10 ----> 480ns
Mov R1,#20 ----> 960ns
Mov a,R0 ----> 1440ns
Add a,R1 ----> 1920ns
Mov R2,a ----> 2400ns
Mov a,R1 ----> 2800ns
Subb a,R0 ----> 3360ns
Mov R3,a ----> 3840ns

Im using C8051F410 controller with a clock frequency of 25 Mhz so the time is 40 ns.
Now the first instruction takes 480ns while single stepping in keil in the seconds tab in the registers window but the instruction takes 2 clock cycles so it should be 2*40ns = 80ns, can somebody please tell me if something is going wrong or im missing anything.

0