Featured

download bcsl-022 solved assignment

Course Code : BCSL-022
Course Title : Assembly Language Programming Lab
Assignment Number : BCA(II)/BCSL-022/Assign/14-15
Maximum Marks : 50
Weightage : 25%
Last Dates for Submission : 31st October, 2014/ 30th April, 2015
download bcsl-022 solved assignment

Question 1:
Design a two bit counter circuit that count from the state 00 to 10 only. The state 11 is
ignored. The states of the counter, thus, may be 00, 01, 10, 00, 01, 10… Use J-K flip flop to design the circuit. You must design them using state transition diagram and Karnaugh's map. (10 Marks)

Question 2:
Write and run the following programs using 8086 assembly language. (30 Marks)

(a) Write and run an Assembly language program that finds the occurrence of a given
substring, for example, BCS in a given string, for example, AXYBCSDEF (please
note that in both the strings a character occurs only once). You may assume that both the string as well as substrings are available in the memory. The program should output the starting index of the location where string is found, otherwise output should be -1. For example, the substring BCS can be found in the string
AXYBCSDEF from the index 3. So the output should be 3.

(b) Write and run (using appropriate calling program) a near procedure in assembly
language that converts two unpacked BCD digits to a packed BCD digit. Both the
unpacked BCD digits are passed as parameters on the stack. The packed BCD byte is
returned back on the AL register itself.

(c) Write and run an assembly language program that accepts a two digit input from the keyboard, and convert this two digit ASCII to equivalent binary value. The output
should be stored in the AL register.
author

Author Name

Author Description!

Get Free Email Updates to your Inbox!

Entri Populer

www.CodeNirvana.in

infolink adds

Powered by Blogger.

Translate

Total Pageviews

Copyright © ignou solved assignments | Distributed By My Blogger Themes | Designed By Code Nirvana