读书人

HLA掏出字符串中的每一个字符

发布时间: 2012-09-23 10:28:11 作者: rapoo

HLA取出字符串中的每一个字符

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;


读书人网 >编程

热点推荐