HLA取出字符串中的每一个字符
2012-09-19 21:56
169 查看
program yang; #include ( "stdlib.hhf" ) static Astring: string := "yangzhiyong"; begin yang; mov(Astring, eax); mov(0, dl); mov( (type str.strRec [eax]).length, ecx); for ( mov(0, esi); esi<ecx; inc(esi) ) do mov( [eax+esi], dl); stdout.put("Astring[", (type uns32 esi), "] = ", (type char dl), nl); endfor; end yang;
二:
program yang;
#include ( "stdlib.hhf" )
static
Astring: string := "yangzhiyong";
Bstring: string := "ljy520zhiyong";
begin yang;
mov(Bstring, ebx);
mov(0, dl);
str.length( ebx );
mov(eax, ecx);
for ( mov(0, esi); esi<ecx; inc(esi) ) do
mov( [ebx+esi], dl);
stdout.put("Astring[", (type uns32 esi), "] = ", (type char dl), nl);
endfor;
end yang;
相关文章推荐
- SQL Server 中取出字符串的首个字符。
- Python----使用正则re取出文本中特定字符串X后面多少位的字符串;取特定字符串与其后多少位字符串
- NSString 遍历字符串的每一个字符并替换相关的字符
- 取出字符串的某一位用ASCII修改为其他字符
- 将字符串中的每一个字符存入数组中
- EXCEL函数取出第N个特定字符串与第M个特定字符串之间的字符
- 字符串数组将每一个字符串分割成两个字符为一组
- SQL实现split函数,自定义分割字符,自定义取出第几个分割字符前的字符串
- 字符串逐个字符取出
- java算法——将字符串中的不同字符分类取出存放
- 取出一个字符串中俩个字符中间的数据.
- java List集合练习题 产生长度随机的字符串,串中每一个字符都是随机的
- 取出字符串中所有字母(字符)
- (转)在SQL中取出字符串中数字部分或在SQL中取出字符部分
- Lua 计算 UTF8 字符串的长度,每一个中文算一个字符
- 从键盘输入一个由字母构成的字符串(不大于30个字符),要求从该串中取出3个不重复的字符,求所有不同的取法。如果字符串中没有取到3个不同的字符,则提示没有结果。对取出的字符要求按字母升序排列成串,对于不
- 用于对字符串中的字符计数, 并可以取出出现次数最多的字符和次数, 若次数最多的有多个,则全部求出
- 取出string中的每一个字符
- 最近项目中需要在指定的字符串中取出数字字符,找了好多但都是词不达意,索性自己写了个方法,与大家共享!
- NSString 遍历字符串的每一个字符并替换相关的字符