News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Im new and i need your help...

Started by black_coder, March 07, 2008, 02:05:23 PM

Previous topic - Next topic

black_coder

Hello guys im new in here but i have a little knowledge about assembly language...first of all the site is great... anyway lets go to my question, do you know how to do names in masm?? i mean when you input a character then this will create an ascii code of your name for example:

Input a 1st character: (I)
Input a 2nd character: (A)
Input a 3rd character: (N)

Then the output will be an ascii code of that characters..

IIIIIIIIIII        AAA         NNNN      NNN
   IIII        AAA   AAA    NNN  N    NNN
   IIII        AAAAAAA     NNN  NN  NNN
   IIII       AAA     AAA   NNN     NNNNN
IIIIIIIIIII   AAA     AAA   NNN       NNNN

By the way i know how to do the input character which is int 20 command. Im asking for 3 inputs.

Tight_Coder_Ex

One way to do it would be setup an array of displays of 50 characters each


Char_A  db    32, 32, 32, 65, 65, 65, 32, 32, 32, 13, 10
            db    65, 65, 32, 32, 32, 32, 32, 65, 65, 13, 10


Then an array of pointers to these sets of 55 characters


Strings   dd   Char_A, Char_B, Char_C .......


Then you can address each by lets say AX = your character.  Subtract 41H from in and then load the pointer by lea edx, [ebx + eax * 4], assuming ebx is pointing to Strings