-
Hello classmates, I am Mr. Tong in the computer composition principle class, please complete the homework independently.
-
A: After the instruction is executed, (ax) = 90f7h
Because the base address register is bx, the segment address is in DS and its value is 3000h physical address segment address * 10h + valid address 3000h * 10h + 1202h = 31202h
The source operand is a 16-bit word operand. Its low-bit byte is in 31202h, and the high-bit byte is in 31202h+1=31203h.
According to the title, (31020h) = 0f7h, (31203h) = 90h, so the operand is 90f7h
-
You're so ruthless. More than 20 programs at once?
-
Hehe, no one gave you an answer, I'll do it for you.
The solution analysis is as follows:
1 start:mov ax,01h
mov bx,02h
mov cx,02h
mov dx,02h
For the beginning of the cycle, i.e. the initialization phase, there are 4 delivery instructions that are transmitted to the result:
ax=01h bx=02h cx=02h dx=02h
where cx is the cycle counter of the next cycle, cx=02h means that it will be cycled 2 times.
2 First Loop Execute the following program segment once.
nxet: inc ax ;Add 1 instruction ax=01h+1=02h
add bx,ax ;Addition instruction bx=bx+ax=02h+02h=04h
shr dx,1 ;The arithmetic right shift instruction has the highest digit to fill 0, and the result is dx=01h
loop next ;The number of cycles minus 1 cx = 02h - 1 = 01h
The second loop executes the following segment one more time.
nxet: inc ax ;Add 1 instruction ax=02h+1=03h
add bx,ax ;Addition instruction bx=bx+ax=04h+03h=07h
shr dx,1 ;The arithmetic right shift instruction with the highest digit complementing 0 results in dx=00h
loop next ;The number of cycles minus 1 cx=01h-1=00h
The result is ax=03h bx=07h dx=00h cx=00h
-
The subject's answer is wrong.
The screenshot is as follows: <>
Correct it as follows:
In just a few lines, you're done.
In addition, this question is only a small homework problem and does not require the full program to be written.
If it appears in an exam question, it is within 10 points. There is no need for a long speech.
So, just write the following lines to get a perfect score:
The question is not required to be displayed, so it is not required to be displayed.
Self-taught people don't understand what this kind of topic should be.
Without professional training, it will only add to the problem.
Fill in the blanks: 1. The t-sql command to modify the structure of the data table is (alter)table; The command to delete a table is to specify the ascending order with (asc) and the descending order with (desc) in the (delete) by clause. If you don't specify ascending or descending order, it defaults to (ASC). >>>More
1.c cuso4 colored. DFECL3 and CUSO4 are colored.
agno3 ====agcl + nano3 .AGCL precipitation. >>>More
Hua Luogeng Gold Cup.
This is a question in the finals. >>>More
The opposite number is the relationship between positive and negative numbers, negative negative is positive, plus or minus is negative) should be equal to) >>>More
I only thought of this method, so I'll talk to you.
A six-digit number, so the first digit can be taken from 1-9. >>>More