<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Bin to hex converter in 16-bit DOS assembly</title>
	<link>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/</link>
	<description>Software Engineering Blog</description>
	<pubDate>Tue, 08 Dec 2009 18:26:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1-alpha</generator>

	<item>
		<title>by: shabgardehasheg_m</title>
		<link>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-170</link>
		<pubDate>Mon, 14 Jul 2008 18:25:42 +0100</pubDate>
		<guid>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-170</guid>
					<description>mm</description>
		<content:encoded><![CDATA[	<p>mm
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: drejan</title>
		<link>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-124</link>
		<pubDate>Mon, 21 May 2007 00:11:43 +0100</pubDate>
		<guid>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-124</guid>
					<description>need help any one , need write a programma DEC --&amp;gt;HEX 8086 , fast can any one help me ?</description>
		<content:encoded><![CDATA[	<p>need help any one , need write a programma DEC &#8211;&gt;HEX 8086 , fast can any one help me ?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: south coast marine</title>
		<link>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-75</link>
		<pubDate>Fri, 25 Aug 2006 21:42:24 +0100</pubDate>
		<guid>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-75</guid>
					<description>bowling for talibans. :p</description>
		<content:encoded><![CDATA[	<p>bowling for talibans. :p
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: eradicus</title>
		<link>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-73</link>
		<pubDate>Fri, 25 Aug 2006 21:30:23 +0100</pubDate>
		<guid>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-73</guid>
					<description>cool! :) that is more friendly than my code at run time.</description>
		<content:encoded><![CDATA[	<p>cool! <img src='http://eradicus.blogsome.com/wp-images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  that is more friendly than my code at run time.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: sykes</title>
		<link>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-72</link>
		<pubDate>Fri, 25 Aug 2006 21:01:56 +0100</pubDate>
		<guid>http://eradicus.blogsome.com/2006/08/25/bin-to-hex-converter-in-16-bit-dos-assembly/#comment-72</guid>
					<description>;here is my nooob code for binhex 
;converstion :) i think i had a lot of worthless lines
;anyway have fun! jejejeje
lea si,save
xor bx,bx
xor cx,cx 
input_:
    mov ah,0 
    int 16h 
    cmp ah,1ch
    je process_p
    cmp cl,4
    jne  clnz_
    xor cl,cl
    
    clnz_:
    	cmp al,'0' 
	    jb  input_ 
	    cmp al,'1' 
	    ja  input_ 
	    call echo_ 
	    jmp input_

process_p:
	cmp cl,4
	jne input_

    
process_: 
    lea di,save2 
    mov cx,bx 
    dec bx 
    xxx: 
        mov dh,4
        mov dl,0 
        dh4lop:        ;for(int i=4;i!=0;--i)
            shr dl,1
            mov al,[si+bx]
            cmp al,'0'
            je done_
            cmp al,'1'
            je one_
            jmp done_
            one_:
                mov al,1
                shl al,3
                add dl,al
                jmp done_

            done_: 
                dec bx 
                dec cx 
                ;jz  save_ 
                dec dh 
                jnz dh4lop 
        save_: 
            cmp dl,9 
            ja  char_ 
            add dl,30h 
            jmp write_ 
            char_: 
            add dl,37h 
            write_: 
            mov [di],dl 
            inc di 
            cmp cx,0 
            ja xxx 
 
gogogo:
mov ah,02
mov dl,10
int 21h
mov dl,13
int 21h
lea si,save2
xor bx,bx
xx:
    mov al,[si+bx]
    cmp al,'$'
    je xit_
    inc bx
    jmp xx
xit_:
    dec bx
    mov ah,02
    mov dl,[si+bx]
    int 21h
    cmp bx,0
    jne xit_
int 20h 

save db 255 dup('$') 
save2 db 255 dup('$') 
 
echo_:
    inc cl 
    mov ah,02 
    mov dl,al 
    int 21h 
    mov [si+bx],dl 
    inc bx
    ret</description>
		<content:encoded><![CDATA[	<p>;here is my nooob code for binhex<br />
;converstion <img src='http://eradicus.blogsome.com/wp-images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  i think i had a lot of worthless lines<br />
;anyway have fun! jejejeje<br />
lea si,save<br />
xor bx,bx<br />
xor cx,cx<br />
input_:<br />
    mov ah,0<br />
    int 16h<br />
    cmp ah,1ch<br />
    je process_p<br />
    cmp cl,4<br />
    jne  clnz_<br />
    xor cl,cl</p>
	<p>    clnz_:<br />
    	cmp al,&#8217;0&#8242;<br />
	    jb  input_<br />
	    cmp al,&#8217;1&#8242;<br />
	    ja  input_<br />
	    call echo_<br />
	    jmp input_</p>
	<p>process_p:<br />
	cmp cl,4<br />
	jne input_</p>
	<p>process_:<br />
    lea di,save2<br />
    mov cx,bx<br />
    dec bx<br />
    xxx:<br />
        mov dh,4<br />
        mov dl,0<br />
        dh4lop:        ;for(int i=4;i!=0;&#8211;i)<br />
            shr dl,1<br />
            mov al,[si+bx]<br />
            cmp al,&#8217;0&#8242;<br />
            je done_<br />
            cmp al,&#8217;1&#8242;<br />
            je one_<br />
            jmp done_<br />
            one_:<br />
                mov al,1<br />
                shl al,3<br />
                add dl,al<br />
                jmp done_</p>
	<p>            done_:<br />
                dec bx<br />
                dec cx<br />
                ;jz  save_<br />
                dec dh<br />
                jnz dh4lop<br />
        save_:<br />
            cmp dl,9<br />
            ja  char_<br />
            add dl,30h<br />
            jmp write_<br />
            char_:<br />
            add dl,37h<br />
            write_:<br />
            mov [di],dl<br />
            inc di<br />
            cmp cx,0<br />
            ja xxx </p>
	<p>gogogo:<br />
mov ah,02<br />
mov dl,10<br />
int 21h<br />
mov dl,13<br />
int 21h<br />
lea si,save2<br />
xor bx,bx<br />
xx:<br />
    mov al,[si+bx]<br />
    cmp al,&#8217;$&#8217;<br />
    je xit_<br />
    inc bx<br />
    jmp xx<br />
xit_:<br />
    dec bx<br />
    mov ah,02<br />
    mov dl,[si+bx]<br />
    int 21h<br />
    cmp bx,0<br />
    jne xit_<br />
int 20h </p>
	<p>save db 255 dup(&#8217;$')<br />
save2 db 255 dup(&#8217;$') </p>
	<p>echo_:<br />
    inc cl<br />
    mov ah,02<br />
    mov dl,al<br />
    int 21h<br />
    mov [si+bx],dl<br />
    inc bx<br />
    ret
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
