Академический Документы
Профессиональный Документы
Культура Документы
EC II/Sem IV/MPI/Assignment II
13/03/2013
Q.1 Explain the following instructions of 8085. Also mention about the No. of
bytes, Machine Cycle , T-states , addressing modes and flags the
instruction affects.
1) MOV M,R 2) MVI R, data
3) LXI SP,16-bit data
4) STA address
5) LHLD address
6) LDAX Rp
7) XCHG 8) ADD M 9) ADC R
10) ACI data 11) DAD Rp
12) SUB R 13) SBB M 14) SBI data
15) DAA
16) DCR M
17) INX Rp 18) ANI data 19) ORA M
20)XRA R
21) CMA 22) STC
23) CMP R
24) RLC 25) RAR
26) PUSH Rp
27) POP Rp 28)SPHL
29) XTHL
30) DAD SP 31) JMP address
32) JP address
33) JPE address
34) PCHL
35) CALL address
36) CZ address
37) CNC address
38) RET
39) RPO
40) NOP
41) HLT 42) EI
43) DI
44) RIM
45) SIM
46) IN 8-bit address
47) RST n .
Q.2
Q.3
A set of three packed BCD numbers (six digits) representing time and
temperature is stored in memory locations starting at XX50H. The seven
segment codes of the digit 0 to 9 for a common-cathode LED are stored in
memory locations starting at XX70H, and the output-buffer memory is
reserved at XX90H. Write a main program and two subroutines, called
UNPACK and LEDCOD to unpack the BCD numbers and select an
appropriate seven segment code for each digit. The code should be stored in
the output buffer memory.
Q.4
Q.5
Q.6
Write a program to sort the following set of marks scored by ten students in
a database course in descending order.
[ Data(H) 63,41,56,62,48,5A,4F,4C,56,56]
Q.7
Q.8
Q.9
A set of ten BCD numbers are stored in memory locations starting from
2500H . Write an ALP to convert each BCD number to binary hex number
and store the result in memory locations starting from address 4000H.
Q.10 Write an ALP to multiply the contents of memory location 3040H by the
contents of memory location 3041H and store the result in memory locations
3042H and 3043H with LS byte of the product at memory location 3042H.
Draw also the flow chart.
Q.11 Write an ALP to divide the 16-bit number by an 8-bit number.
Q.12 Write an ALP to find the maximum no. in the array.
Q.13 Write an ALP to generate a Fibonacci series.
Q.14 Write an ALP to calculate the sum of series of Even numbers.
Q.15 Write an ALP to compute Factorial of a given no. & Store the result.
Q.16 Write an ALP to find the 2s complement of a number.