0

Good afternoon;:)

what is wrong in this code ,
its job to print a name in reverse order

name  dword 20 dup(' '),0
 .
.
.
.
.
 
mov edx,offset name
 mov esi,offset name
 mov ecx,lengthof name
 L7:mov edx,[esi]
    call writestring
    dec esi
    loop L7

when running programe this massege apear in the black screen:

syntex error: name
2
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by Zay
0

name dword 20 dup(' '),0

is wrong. Probably it should be:

name db 20 dup( ' ' ), 0

But in the highly unlikely event that you really did need 32 bit double words there, it should be:

name dd 20 dup( ' ' ), 0

0

name dword 20 dup(' '),0

is wrong. Probably it should be:

name db 20 dup( ' ' ), 0

But in the highly unlikely event that you really did need 32 bit double words there, it should be:

name dd 20 dup( ' ' ), 0

ya, but error still there . :X

0

so what can i do now,
I have to submit this assi. Today !

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.