Untitled

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

Code (highlighted for ASM)

  1. strlen:
  2.         mov bp,sp
  3.         mov bx,[bp+0x02]
  4.         xor di,di
  5.         strlen_w1:
  6.                 mov dl,[bx+di]
  7.                 inc di
  8.                 cmp dl,'$'
  9.                 jne strlen_w1
  10.         dec di
  11.         dec di
  12.         mov ax,di
  13.         ret 2