.model small
.stack 100h
.data
msg db 'Enter the data in binary format $'
msg1 db 0dh,0ah,'output in binary form is : $'
.code
main proc
mov ax,@data
mov ds,ax
mov ah,09h
lea dx,msg
int 21h
mov bx,0
mov cx,16
again:
mov ah,01h
int 21h
cmp al,13
je printout
and al,0fh
shl bx,1
or bl,al
loop again
printout:
mov ah,09h
lea dx,msg1
int 21h
mov cx,16
disp:
shl bx,1
jnc again1
mov dl,49
mov ah,02h
int 21h
jmp display
again1:
mov dl,48
mov ah,02h
int 21h
display:
loop disp
mov ah,4ch
int 21h
main endp
end main
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}