Course Code  CS-01
Course Title Computer Fundamentals
Assignment Number  MCA(2)-01/project/03
Maximum Marks  15
Last Date of Submission   31st October, 2003

This is a Project. There are two questions in this Assignment. Attempt both the questions. The question carries equal weightage. For more details on how to do the project assignment, please go through the guidelines of TMA and project in your Starter Kit.

Question 1: (a) Design a 2-bit binary counter, which counts on the occurrence of every alternate clock pulse.  The states of the counter are :00, 01, 10, 11, 00, ..........
  (b) Design and draw the following combinational circuits:
(i)  Circuit that adds two BCD digits (each digit consists of 4 bits) to produce two BCD digits: One BCD SUM
     digit and one BCD CARRY digit (each digit is of 4 bits).
(ii) Comparison logic for 4 words of associative memory having 2 bits in each word.
Question 2: (a) Write a 8086 assembly language subroutine that can be used for password matching.  Interface/call this subroutine from a C Program