Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1041937
  • 博文数量: 254
  • 博客积分: 10185
  • 博客等级: 上将
  • 技术积分: 2722
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-25 15:04
文章存档

2011年(8)

2009年(1)

2008年(31)

2007年(214)

分类:

2007-12-09 15:31:31

;---------------------------------------------------
Get_String_Length   PROC   NEAR
;
;   Get   the   length   of   a   string   end   with   zero.
;   Receive(s):   ES:BP   =   segment:offset   of   the   string
;   Return(s):   CX   =   length   of   the   string
;---------------------------------------------------

PUSH   BP

MOV   CX,0 ;clear   CX   counter
Counting:
CMP   BYTE   PTR   ES:[BP],0
JE   Count_Finish
INC   CX
INC   BP
JMP   Counting
Count_Finish:
POP   BP

RET

Get_String_Length   ENDP
阅读(1474) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~