Question: PART C (25 MARKS) QUESTION 1 a) Which data directive is used when defining 8-bit integers and 16-bit integers? Give an example for each.

PART C (25 MARKS) QUESTION 1 a) Which data directive is used

PART C (25 MARKS) QUESTION 1 a) Which data directive is used when defining 8-bit integers and 16-bit integers? Give an example for each. (4 marks) b) Verify whether the following statements are TRUE or FALSE. The INC instruction does not affect the Carry flag. The MOV instruction requires both operands to be the same size. The DS register can be the destination operand of a MOV instruction. The Overflow flag may be set when adding a positive integer to a negative integer. (4 marks) a) i) ii) iii) iv) QUESTION 2 Write a program segment in an assembly language according to the following expression. Assume TOTAL, DWORD, ALPHA and BETA are 16-bits memory operands. TOTAL = DWORD + (ALPHA BETA) + 1 (3 marks) b) By using SHIFT instruction in assembly language, write a program segment to represent the following instruction. RESULT = ( 256 + 8) + ( 16 / 4 ) (4 marks)

Step by Step Solution

3.38 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

PART C 25 MARKS QUESTION 1 Which data directive is used when defining 8bit integers and 16bit intege... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!