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
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
0 टिप्पणियाँ:
Post a Comment