Re: newbie

Fred Marmond <[email protected]>
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
Hi Niel
string is a label, that's to say here, a pointer.
If you are in x86 architecture (32bits), a pointer is 32bits long, so you'll 
have to do "mov edi,string".
If you are in x86_64 arch (64bits), you'll have to use 64bits registers for 
pointers, "mov rdi,string"


Fred


Le Vendredi 23 Décembre 2005 17:50, Niel A a écrit :
> hello all!
>
> i'm taking linux assembly as a hobby for christmas and i found your great
> site. the tutorials have been much helpful.
>
> anyway, i meant to ask something..
>
> section .data
> 	string: db "hi!",10
>
> and i wanna capitalize the small letter 'h'.
>
> at first i used
> 	mov di, string ; but di is 16 bits and ld complains
>
> so i eventually started using the 32 bit ones to do the capitalisation
> operation. but for some reason, i lose all other letters, including the
> linefeed.
>
> please point me to the right direction.
>
> merry christmas,
> - niel
> -
> To unsubscribe from this list: send the line "unsubscribe linux-assembly"
> in the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.