Showing posts with label BCSL-022. Show all posts
Showing posts with label BCSL-022. Show all posts
(b) Write and run (using appropriate calling program) a near procedure in 8086 assembly language             that checks if the input parameter has a value zero or not. If the value is zero subroutines                     terminates the program else returns a value 1 in AL register.

(c) Write and run an 8086 assembly language program that finds the sum of odd placed values out of        10 consecutive byte values stored in an array in the memory. For example, if 10 consecutive byte         values (in hexadecimal) are - 12, AA, 13, AB, 14, AC, 15, AD, 16, AF, then this program should         add only value 12, 13, 14, 15 and 16.
Write and run following programs using 8086 assembly language.

Write and run an Assembly language program that converts an ASCII four digit number that is stored in four consecutive byte locations into a packed BCD number that is to be stored in DX register. For example, if ASCII digits 4321 are stored in four consecutive locations then your program will convert them into packed BCD and store it in DX as (0100 0011 0010 0001)2
Design a two bit counter circuit that counts from 0 to 3. It should have states 00, 01, 10 and 11. The initial state of the counter may be assumed to be 00. The counter will be in following successive states: 00, 01, 10, 11, 00, 01, 10, 11, 00, 01, 10, 11, 00 ... Use any flip flop to design the circuit. You must design counter using state transition diagram and Karnaugh's map.