;this revision of Program 3-1a shows how to save the flags ; before updating the pointers BACK: MOV EAX,DWORD PTR [SI] ;move the operand to EAX ADC EAX,DWORD PTR [DI] ;add the operand to EAX MOV DWORD PTR [BX],EAX ;store the sum PUSHF ;save the flags ADD SI,4 ;point to next dword of operand1 ADD DI,4 ;point to next dword of operand2 ADD BX,4 ;point to next dword of sum POPF ;restore the flags LOOP BACK ;if not finished, continue adding