Hi everybody!

This is my code .
I don't know what's wrong .

The output should be 4CA9 .

.MODEL SMALL
.STACK 100H

.DATA 



.CODE
MAIN PROC
;initialize DS
MOV AX,@DATA
MOV DS,AX


MOV CL,4

MOV BX,4CA9H

MOV CX,4

TOP:


MOV DL,BH

SHR DL,CL

CMP DL,10

JGE ELSE_

OR DL,30H


JMP END_IF

ELSE_:

ADD DL,37H

END_IF:

MOV AH ,2
INT 21H

ROL BX,CL

LOOP TOP


EXIT_DOS:
;Dos exit
MOV AH,4CH
INT 21H



MAIN ENDP
END MAIN

please any body help me!

Desingnate code will be placed in DS Assume CS:Code

Just to start I a statement to start "Assume DS:Data what will the code addressed could be but it ip address is 100h

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.