0% found this document useful (0 votes)
19 views3 pages

Sheet 4 Microprocessor

Uploaded by

ramezbasel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Sheet 4 Microprocessor

Uploaded by

ramezbasel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Sheet 4 Microprocessor

1- Which type of JMP is used when jumping to any location


within the current code segment?

2- Which JMP instruction allows the program to continue


execution at any memory location in the system?

3- Which JMP instruction is 5 bytes long?

4- Which type of JMP instruction (short, near, or far)


assembles for the following:
(a) if the distance is 0210H bytes
(b) if the distance is 0020H bytes
(c) if the distance is 10000H bytes

5- List the five flag bits tested by the conditional jump


instructions.

6- Describe how the JA instruction operates.

7- When will the JO instruction jump?

8- Which conditional jump instructions follow the


comparison of signed numbers?

9- Which conditional jump instructions follow the


comparison of unsigned numbers?

10- Which conditional jump instructions test both the Z


and C flag bits?

11- When does the JCXZ instruction jump?

12- The 8086 LOOP instruction decrements register


____________ and tests it for a 0 to decide if a jump occurs.

13- Trace the following assembly program :


MOV AX ,0
ADD AX, 4789H
ADC AX, 6488H
ADD AL, 88H
ADC AH, 33H
SUB AX, 3567H
SBB AX, 8000H
SUB AL, 45H
SBB AH, 78H
MOV AL, FFH
DEC AL
NEG AL
MOV AL, F0H
MOV BL, 11H
MUL BL
MOV AX, F000H
MOV BX, 1234H
IMUL BX
MOV AX, 00F0H
MOV BL, 10H
DIV BL
MOV DX, -1
MOV AX, -1
MOV BX, 1
IDIV BX

14- Write a program in assembly 8088 to transfer table of bytes start at


address BLOCK1 at data segment to address BLOCK2 at extra data
segment the size of table is 50 byte

15- Write a program in assembly 8088 to add the element found in first
table start at address BLOCK1 at data segment to element found in
second table start at address BLOCK2 at extra data segment and put the
result at table 3 started at address BLOCL3 at data segment note tables
size are 50

16- Write a program in assembly 8088 to sum the element found in table
start at address BLOCK1 at data segment and save the result of sum at
ADDRESS1 at data segment also get the average and save the quotient at
ADDRESS2 and reminder at ADDRESS3 note the size of table is 50

17- Write a program in assembly 8088 to get the Maximum value found
in table start at address BLOCK1 at data segment and save the result at
address ADDRESS in data segment note the size of table 70 byte

18- Write a program in assembly 8088 to down sorting for table of


unsigned number of size byte start at address 2100H at data segment note
the size of table 55H
19- Write a program in assembly 8088 to get the factorial of N number
and save the result at address 2100H at data segment also define the
maximum value of N

You might also like