Question: Homework 2 Q1. Rewrite program of slide 31, Chapter 3a to transfer one word at a time instead of one byte. Q2. In some applications
Homework 2 Q1. Rewrite program of slide 31, Chapter 3a to transfer one word at a time instead of one byte. Q2. In some applications it is common practice to save all registers at the beginning of a subroutine. Assume that SP = 1288H before a subroutine CALL. Show the contents of the stack pointer and the exact memory contents of the stack after PUSHF for the following: 1132:0450 CALL PROC1 1132:0453 INC BX PROC1 PROC PUSH AX PUSH BX PUSH CX PUSH DX PUSH SI PUSH DI PUSHF PROC1 ENDP Q3. All the jumps below are short jumps, meaning that the labels are in the range -128 to +127. IP Code E06C 733F JNC ERROR1 E072 7139JNO ERROR1 E08C BED8 C8: MOV DS,AX EOA7 EBE3JMP C8 EOAD F4 ERROR1: HLT (i) (a) Find displacement, (b) instruction after JNC ERROR1, & (c) offset of ERROR1 (a) Find displacement, (b) instruction after JMP C8, & offset of C8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
