Question: write a C++ code to emulate the function of REP MOVS instruction in x86 and verify its function. please show steps and verify question is

write a C++ code to emulate the function of REP MOVS instruction in x86 and verify its function.
write a C++ code to emulate the function of REP MOVS instruction
please show steps and verify
question is for computer architecture ARM7

Q1: Implementation of REP MOVS instruction using Cht and verify the functioning of the instruction 1. Write a C++ code the emulate the function of REP MOVS instruction in X86 and verify its function. You may decide the length of the string used. 2. Implement REP MOVS instruction using the RSIC ARM7 Assembly language programing and verify using Keil micro-vision. 3. Make sure you comment your CH and AM7 code well. REP MOVS (DEST SRC) Destination Source: if(IsByteMove() if(DF) (E)SI - (ESI - 2 (EDI - (EDT 13 elser (E)SI(E)S 13 (E)OI (EDI - 1; > > else if (IsWordMove()) { if(DE) (E)SI (E)ST + 2; (E)DI (EDT + 2 IF Address Size - 16 THEN Use CX for CountReg: ELSE IF Address Size = 64 and REX.W used THEN Use RCX for CountReg: Fl: ELSE Use ECX for CountReg: FI: WHILE CountReg 0 DO Service pending interrupts (if anyt Execute associated string instruction: CountReg -- (CountReg-1); IF CountReg - 0 THEN exit WHILE loop; FL IF (Repeat prefix is REPZ or REPE) and (ZF -0) or (Repeat prefix is REPNZ or REPNE) and (ZF- THEN exit WHILE loop: FL OD: else ( (ESI (ESI-2 (ED(E)DI - 2 ) else { //doubleword move if( FO) { (E)SI - (E)SI +41 (EDI - (EDI 41 else (E)S (E)SI 4 (E)- EDI 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!