Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DOSBOX 0.74 Find the values of registers AX, BX, CX, DX, CS and IP after executing all following lines which are written in DEBUG environment.
DOSBOX 0.74
Find the values of registers AX, BX, CX, DX, CS and IP after executing all following lines which are written in DEBUG environment. Give your answers in hexadecimal. For AX, BX, CX, DX and CS registers, all values assigned to these registers while program is running must be shown, so, if any value changes for any one of these registers, just put a comma and write the new value (e.g. AX: old_value, new_value, verynew_value, ...). Note: If required memory map (below) is given. Code 1604:0100 MOV CX, 2336 1604:0102 MOV BX,6783 1604:0105 MOV AX, BA 1604:0107 MOV CH, DE 1604:0109 PUSH CX 1604:010A SUB AX, BX 1604:010C MOV DS, AX 16C4:010E PUSH AX 16C4:010F CMP BX, CX 16C4:0111 MOV DX,[BX] 16C4:0115 SUB BX, 5987 1604:0117 MOV WORD PTR[1011],9317 16C4:0119 ADD BX, 216 1604:011C ADD CL, DH 16C4:0122 MOV BH,[BX] 16C4:0125 ADD CX, AX 1604:0126 POP AX 16C4:012A SUB BL, DH 16C4:012B ADD DX, AX 1604:012F ADD AL, BA 16C4: 0130 Memory Map OB9F 1101 1001 OOBAO QOBA1 OODFB QODFC OODFD 0011 1111 0111 0110 0001 1101 1010 0100 1111 0011 1100 1110 0110 0110 0111 1111 0011 0011 01010 01011 01012 01013 06782 1010 1011 06783 1001 1011 0100 1001 06784 09311 09312 09313 1000 0000 0011 1110 1110 1000 0000 1100 1000 0010 1111 1011 09347 09348 09349 09936 0010 0011 11 0100 09937 09938 1111 0111 DA732 A733 DA734 1000 1111 1100 0000 1100 1100 0110 1010 0010 1101 1010 0110 A947 DA948 DA949 OA94A ODFBF 1100 1011 0001 0111 1101 0111 ODFCO ODFC1 0010 0000 1110 0001 100B9 0110 1101 100BA 100BB 0101 1010 1110 0100 1010F 10110 1100 1101 1000 1100 10111 10117 1100 0110 10120 0111 1101 10121 1110 0111 12C48 1010 0011 0111 0000 12049 12C4A 12C7E 12C7F 12080 178F6 178F7 178F8 0011 0110 1000 0100 0010 1100 0001 1000 1000 0001 1000 0101 2001 0010 1001 0011 0111 0011 1011 0111 1101 0000 19A46 19A47 19448 19A56 1001 0110 19A57 19A58 0100 1111 2C48F 2C490 20491 2C7EF 0100 0010 0000 0111 0101 0101 1100 1000 1000 1000 1110 0000 0101 0110 2C7F0 2C7F1 6782F 67830 0110 1110 67831 1000 1110 71166 71167 71168 0100 0011 0010 1001 0000 0000 1010 1101 1111 1110 9311F 93120 93121 1011 1110 93475 1110 1110 93480 1111 0001 93481 0001 1010 0011 1010 9936F 99370 99371 9A16B 9A16C 1001 1111 0101 0100 1011 1011 0100 1000 9A16D 9A380 0000 0010 1111 1000 1001 1100 0000 1000 9A381 9A382 9A383 9CA56 0100 0110 0111 1000 9CA57 1110 1010 9CA58 9CDB6 9CDB7 9CDB8 9FAF2 9FAF3 0000 0011 0111 0001 0011 1011 0100 0111 0001 1111 0110 1011 1100 1010 1100 1001 1111 0100 0111 1011 0110 0101 9FAF4 A2681 A2682 1110 1111 A2683 A26B7 A26B8 A26B9 A732F A7330 A7331 A9477 A9480 A9481 A948F A9490 A9491 0101 1110 1010 1100 0110 0100 0111 1001 1110 0110 0001 1001 0100 0101 1110 0101 0000 0101 0000 1010 Find the values of registers AX, BX, CX, DX, CS and IP after executing all following lines which are written in DEBUG environment. Give your answers in hexadecimal. For AX, BX, CX, DX and CS registers, all values assigned to these registers while program is running must be shown, so, if any value changes for any one of these registers, just put a comma and write the new value (e.g. AX: old_value, new_value, verynew_value, ...). Note: If required memory map (below) is given. Code 1604:0100 MOV CX, 2336 1604:0102 MOV BX,6783 1604:0105 MOV AX, BA 1604:0107 MOV CH, DE 1604:0109 PUSH CX 1604:010A SUB AX, BX 1604:010C MOV DS, AX 16C4:010E PUSH AX 16C4:010F CMP BX, CX 16C4:0111 MOV DX,[BX] 16C4:0115 SUB BX, 5987 1604:0117 MOV WORD PTR[1011],9317 16C4:0119 ADD BX, 216 1604:011C ADD CL, DH 16C4:0122 MOV BH,[BX] 16C4:0125 ADD CX, AX 1604:0126 POP AX 16C4:012A SUB BL, DH 16C4:012B ADD DX, AX 1604:012F ADD AL, BA 16C4: 0130 Memory Map OB9F 1101 1001 OOBAO QOBA1 OODFB QODFC OODFD 0011 1111 0111 0110 0001 1101 1010 0100 1111 0011 1100 1110 0110 0110 0111 1111 0011 0011 01010 01011 01012 01013 06782 1010 1011 06783 1001 1011 0100 1001 06784 09311 09312 09313 1000 0000 0011 1110 1110 1000 0000 1100 1000 0010 1111 1011 09347 09348 09349 09936 0010 0011 11 0100 09937 09938 1111 0111 DA732 A733 DA734 1000 1111 1100 0000 1100 1100 0110 1010 0010 1101 1010 0110 A947 DA948 DA949 OA94A ODFBF 1100 1011 0001 0111 1101 0111 ODFCO ODFC1 0010 0000 1110 0001 100B9 0110 1101 100BA 100BB 0101 1010 1110 0100 1010F 10110 1100 1101 1000 1100 10111 10117 1100 0110 10120 0111 1101 10121 1110 0111 12C48 1010 0011 0111 0000 12049 12C4A 12C7E 12C7F 12080 178F6 178F7 178F8 0011 0110 1000 0100 0010 1100 0001 1000 1000 0001 1000 0101 2001 0010 1001 0011 0111 0011 1011 0111 1101 0000 19A46 19A47 19448 19A56 1001 0110 19A57 19A58 0100 1111 2C48F 2C490 20491 2C7EF 0100 0010 0000 0111 0101 0101 1100 1000 1000 1000 1110 0000 0101 0110 2C7F0 2C7F1 6782F 67830 0110 1110 67831 1000 1110 71166 71167 71168 0100 0011 0010 1001 0000 0000 1010 1101 1111 1110 9311F 93120 93121 1011 1110 93475 1110 1110 93480 1111 0001 93481 0001 1010 0011 1010 9936F 99370 99371 9A16B 9A16C 1001 1111 0101 0100 1011 1011 0100 1000 9A16D 9A380 0000 0010 1111 1000 1001 1100 0000 1000 9A381 9A382 9A383 9CA56 0100 0110 0111 1000 9CA57 1110 1010 9CA58 9CDB6 9CDB7 9CDB8 9FAF2 9FAF3 0000 0011 0111 0001 0011 1011 0100 0111 0001 1111 0110 1011 1100 1010 1100 1001 1111 0100 0111 1011 0110 0101 9FAF4 A2681 A2682 1110 1111 A2683 A26B7 A26B8 A26B9 A732F A7330 A7331 A9477 A9480 A9481 A948F A9490 A9491 0101 1110 1010 1100 0110 0100 0111 1001 1110 0110 0001 1001 0100 0101 1110 0101 0000 0101 0000 1010Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started