Pentium Assembly Code Question

Posted by leon on Stack Overflow See other posts from Stack Overflow or by leon
Published on 2010-04-24T23:15:22Z Indexed on 2010/04/24 23:23 UTC
Read the original article Hit count: 351

Filed under:

Hi

I am new to Pentium assembly programming.

Could you check if I am doing the translation of C to assembly correctly?

Condition: 32-bit addresses, 32 bit integers and 16 bit characters.

char[5] vowels="aeiou";

Translate: vowels db "aeoiu" ; or should it be "vowels dw "aeoiu" ?

How to access vowels[p]? Is it byte[vowels+p*2]? (since characters are 16 bit? )

Many thanks

© Stack Overflow or respective owner

Related posts about assembly