Header Ads

Tuesday 17 September 2019

BCA(2) BCSL-022 Assembly Language and Programming Lab Solved Assignment 2019-20.

BCA(2) BCSL-022 Assembly Language and Programming Lab Solved Assignment 2019-20.

BCSL-022 Assembly language Programming Language 2019-20

BCA(2) BCSL-022 Assembly Language and Programming Lab Solved Assignment 2019-20.
Q: 1 Design a two bit counter circuit that counts from 0 to 2. It should have states 00, 01 and 10. The initial state of the counter may be assumed to be 00. The counter will be in following successive states: 00, 01, 10, 00, 01, 10, 00, 01, 10, 00 ... Use J-K flip flop to design the circuit. You must design the circuit using state transition diagram and Karnaugh's maps.
Ans: 
A sequential circuit is specified by a time sequence of external inputs, external outputs and internal flip-flop binary states. Thus firstly, a state table and state diagram is used to describe behaviour of the circuit.

Q2. Write and run following programs using 8086 assembly language: (3 × 10 = 30) 

(a) Write and run an Assembly language program that converts a packed 4 digit BCD number that has been stored in two consecutive byte locations in the memory, into an equivalent binary number. The output should be stored in DX register. For example, if two consecutive byte locations have BCD values (12)h and (34)h then output will be binary equivalent of (1234)10 which is (0000 0100 1101 0010)2. This binary value will be stored in DX register.

0 comments:

Post a Comment