DATA SEGMENT
ARRAY DB 9H ,40H,88H,3H,20H,66H
P DB ?
N DB ?
DATA ENDS
CODE SEGMENT
START: ASSUME CS:CODE, DS:DATA
MOV AX, DATA
MOV DS, AX
MOV CL , 06H
MOV SI , OFFSET ARRAY
NEXT : MOV AL , [SI]
ROL AL, 1
JC NEXT1
INC P
JMP EXIT
NEXT1: INC N
JMP EXIT
EXIT: INC SI
DEC CL
JNZ NEXT
MOV AH , 4CH
INT 21H
CODE ENDS
END START
Programs:-
For many other Assembly Language Programs related to microprocessor 8086, c++ , datastructures visit our BLOG
There are programs of largest
,smallest ,division ,multiplication,odd/even,block operation ,string operations
,etc
No comments:
Post a Comment