This is a RISC code I came across in a book. The code is to multiply 10 with 5.
Mov ax,0
Mov bx,10
Mov cx,5
begin : Add ax,bx
loop begin
It is given that total number of cycles taken by this code is 13 cycles. I don't understand how begin-loop begin
loop gets terminated. We are not setting any condition for that. Can anyone please explain how is it interpreted.