strlen.s
来自「LINUX lilo-22.7 源代码。」· S 代码 · 共 32 行
S
32 行
/* strlen.S Copyright 2000-2004 John Coffman. All rights reserved. Licensed under the terms contained in the file 'COPYING' in the source directory.*/;; strlen: find length of a string; enter with:; DS:BX = pointer to string;; return with:; AX = length of string;strlen: mov ax,bxstrlen1: test byte (bx),#0xFF jz strlen2 inc bx jmp strlen1strlen2: sub bx,ax xchg ax,bx ret; end strlen.S
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?