1 Write a short block of computational statements that cause

1) Write a short block of computational statements that causes the BX register to overflow.

2) Write a short block of computational statements that causes the CX register to set the carry flag.

Specifications:

a)   Use variables as opposed to immediate values.

b)   Make sure no other computations affect the outcome of this register.

c)   The register must be zeroed out before it is used.

Is there someone to me on to write code on Assembly language for this problem?

Solution

Answer:

1. Overflow in BX register: See the code below

-----------------------------------------

MOV BX, 0000h

MOV AX, 0001h

MOV DX, 7FFFh

MOV BX, DX

ADD BX, AX

--------------------------------------

2. Carry flag in CX register: See the code below:

--------------------------------------

MOV CX, 0000h

MOV AX, 0F1h

MOV DX 0Fh

MOV CX, DX

ADD CX, AX

-----------------------------------------

1) Write a short block of computational statements that causes the BX register to overflow. 2) Write a short block of computational statements that causes the C

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site