Untitled

Posted on March 6, 2010, 9:21 pm UTC anonymously (about 1 year ago)

Code (highlighted for ASM)

  1. dtoa:
  2.         mov     bp,sp
  3.         mov     ax,[bp+0x02]
  4.         xor     ch,ch
  5.         mov     cl,10
  6.         xor     ax,ax
  7.         dwhile:
  8.                 mov     dx,0
  9.                 div     cx
  10.                 add     dl,0x30
  11.                 push ax
  12.                 add ax,dx
  13.                 pop ax
  14.                 cmp     ax,0x00
  15.                 jne     dwhile
  16.         ret 2