What are the final values of them after the execution of the program?

The following is an assembly program.

 

CODE SEGMENT

START: MOV AX, DATA

MOV DS, AX

MOV CX, 3

MOV SI, OFFSET ARRAY

ITER: MOV AX, [SI]

XCHG AH, AL

ROL AX, 1

INC SI

AND [SI], AX

LOOP ITER

ENDS

 

DATA SEGMENT

DB 6 DUP (0)

ARRAY DB 0B9H,8BH,01H,70H,02H,06H,34H,0CH

ENDS

 

END START

 

Enter the above program in emu8086, obtain the list file and single step the program, to complete tasks and answer questions below.

 

  1. Fill in the blanks in the following table after each instruction is executed for the first run of the ITER loop:
Run 1 AX CX SI 8-bit data in DS:SI 8-bit data in DS:SI+1
MOV AX, [SI]          
XCHG AH, AL          
ROL AX, 1          
INC SI          
AND [SI], AX          
LOOP ITER          

 

The data of the 8 memory locations starting from ARRAY at the end of Run 1:

               

 

What is the function of ROL? Use the numbers in ROL AX,1 to explain.

What is the function of AND?

  1. Fill in the blanks in the following table after each instruction is executed for the second run of the ITER loop:

 

Run 2 AX CX SI 8-bit data in DS:SI 8-bit data in DS:SI+1
MOV AX, [SI]          
XCHG AH, AL          
ROL AX, 1          
INC SI          
AND [SI], AX          
LOOP ITER          

 

The data of the 8 memory locations starting from ARRAY at the end of Run 2:

               

 

What are the final values of them after the execution of the program? Explanation and screenshot are required.

  1. If the data transferred into CX is 6, how many times will the LOOP instruction execute?

Write an equivalent instruction to MOV AX,DATA using array.

find the cost of your paper

Explain why attenuation is not a big problem in PET.

Consider a 2-D object consisting of two triangle compartments, as shown in Figure P9.4. Suppose a solution containing a 511 KeV gamma ray emitting radionuclide with concentration f = 0.5….

Give the mean and the variance of the reconstructed image, mean[ˆ f(x, y)] and var[ˆ f(x, y)].

Ignoring the inverse square law and attenuation, an approximate reconstruction for SPECT imaging is given by where c˜() =  {||W()} and W() is a rectangular windowing filter that cuts off at = 0…..

Find the numerical responses in each to an event in crystal C(4, 6).

Suppose a PET detector comprises four square PMTs (arranged as a 2 by 2 matrix) and a single BGO crystal with slits made in such a way that it is….