; to convert a hexa number to a binary number
mov al,0ch
mov bl,2h
mov dx, 0000h
div bx
mov [0500],dl
mov dx, 0000h
div bx
mov [0501],dl
mov dx, 0000h
div bx
mov [0502],dl
mov dx, 0000h
div bx
mov [0503],dl
mov al, [0503]
mov bx, 1000h
mul bx
add [0508],ax
mov al, [0502]
mov bx, 100h
mul bx
add [0508],ax
mov al, [0501]
mov bl, 10h
mul bl
add [0508],ax
mov al, [0500]
mov bl, 1h
mul bl
add [0508],ax
mov ax,[0508]
ret
this is the solution. u all are chitter and dont even try to help in this simple program.