I'm trying to calculate the execution time of my program but I still can't manage how to do it .
This is my asmb code :
start:
MOV R1,A
loop1:
MOV R2, #250
loop2:
MOV R3, #250
loop3:
NOP
NOP
DJNZ R3,loop3
DJNZ R2,loop2
DJNZ R1,loop1
end
The program has an endless loop so how can this be calculated ? Even if it wasn't an endless loop how are the calculations done ?
This is my asmb code :
start:
MOV R1,A
loop1:
MOV R2, #250
loop2:
MOV R3, #250
loop3:
NOP
NOP
DJNZ R3,loop3
DJNZ R2,loop2
DJNZ R1,loop1
end
The program has an endless loop so how can this be calculated ? Even if it wasn't an endless loop how are the calculations done ?
Last edited: