10 views

https://gateoverflow.in/291233/calculate-number-of-times-zero-flag-is-reset

Can someone explain to me the entire approach and ultimately the final answer ?

| 10 views
+1
they are asking, how many times ZERO flag was Updated to value 0.

$(23)_8$ = 19 in decimal.

on addition/subtraction, based on the result the ZERO flag is updated to 1 if result is 0, else updated to 0.

JNZ LOOP means, if ZERO flag is 0 then jump to the label LOOP. else continue to the next statement
0
@shaik ….. ok i understood. Thank u so much.