litere times 255 db 0 ;letters array
dim_sir_litere db 0 ;this will tell me how many letters i have in my array
mov [dim_sir_litere],EDI ; the length of letters array
; пытается распечатать все буквы из массива, но он не работает
mov ECX,[dim_sir_litere] ;this will have the lenght of my letters array
mov ESI,0 ;this will be the index that i will use
; в этом l oop я хочу напечатать все символы из массива litere
afisare_litere:
push ECX ;keep ECX value
mov EAX,dword [litere+ESI] ;put in EAX the value from ESI index
inc ESI ;mov index to the next position
push dword EAX
push dword format_caracter ;the format is %c
call [printf]
add esp,4*2
pop ECX
loop afisare_litere
Фактическая проблема заключается в том, что после того, как я запускаю код, он ничего не печатает, не печатает ничего, я использую этот код для помещения букв в массив:
mov [litere+EBX],AL