Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Plesae help: 1- Assume the number 32 is on the data lines and the number 20 is o

ID: 3884822 • Letter: P

Question

Plesae help:

1- Assume the number 32 is on the data lines and the number 20 is on the address bus. At the same time the WRITE signal activated. Explain what CPU and memory will do.

2. Assume the number 5 is on the address bus and at the same time the READ signal is activated. Explain what CPU and memory will do.

3. Write an assembly language program to add three numbers stored at locations 20, 21, 22 and store the result in location 23. Write the machine code as well. Convert the machine code to HEX.

4. A computer has 32 bits of address lines. How many bytes can it access in Giga byte and Mega byte and Kilo bytes?

Explanation / Answer

1. Data i.e 32 will be written by the CPU on the address 20 in the memory.

2. The value stored at address 5 in the memory will be transferred on the data lines by the CPU

4. 4 Giga bytes or 4096 Mega byte or 4194304 Kilo bytes

3. .data

.code

mov ax,[20];

mov bx,[21];

mov cx,[22];

add ax,bx;

add ax,cx;

mov [23],ax;

end