News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

need help

Started by kingzs, May 11, 2013, 07:37:47 PM

Previous topic - Next topic

kingzs

please someone solve these problms for me...
I shall be very thankful to you...

(1)   Suppose your date of birth has to be stored in memory as a Hexadecimal integer Show its representation diagrammatically in
           a.   Little Endian Notation
           b.   Big Endian Notation
            Assume the memory offsets begins at 03E0H (Hints: the DOB must be an 8-digitshexadecimal number)
(2)   Convert each letter of your first name to ASCII codes. Store these ASCII codes in a double word Array. Add all elements  of this array and save the result in a variable (memory operand)
            a.   Through Direct Addressing
            b.   Through Indirect Addressing 
(3)   Write your date of birth  as follows e.g. 02071983H
   A.       Convert each BYTE of this hexadecimal  number into
                     a.   Binary number.
                     b      Decimal number.
               B.          Convert each WORD of this number into
                     a.   Binary number.
                     b.   Decimal number.
(4)   Save your DOB in EAX as a 32-bit Hexadecimal integer (DDMMYYYYH)
                     a.   Moving this number as BYTES.
                     b.   Moving this number as WORD.
                     c.   Moving this number as DWORD.
     (6)   Suppose your DOB is stored as DD, MM, YY in DWORD Array. Rearrange these elements as follows.      MM, YY, DD
     (7)   Subtract your Roll no from 500D using two register operands and then save the result in a memory operand.
     (8)   Convert each letter of your first name to ASCII codes. Store it as Array of BYTES in memory. Save the ASCII codes for vowels from this array in r8 registers.

dedndave

first of all, it sounds like your instructor is playing a social r-e game on you
i wouldn't use my real birthday - lol

the first question tells me that he doesn't have a solid handle on how things are stored in memory
Quote(1)   Suppose your date of birth has to be stored in memory as a Hexadecimal integer Show its representation diagrammatically in
           a.   Little Endian Notation
           b.   Big Endian Notation
things that are stored in memory are always stored as binary
hexadecimal is merely a human-friendly way to view large binary values
and - he really doesn't tell you how your birthday is supposed to be encoded
but, i can guess what he wants to see
assuming your birthday is june 20, 1980 - we can store it as 19800620h
little endian
03E0h: 20h
03E1h: 06h
03E2h: 80h
03E3h: 19h
big endian
03E0h: 19h
03E1h: 80h
03E2h: 06h
03E3h: 20h

for the other questions.....

we have a no homework rule in the forum
however, we sometimes overlook the rule and help those who have shown considerable effort
so - if you at least try to write the code, we may be obliged to help