home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,639 of 4,675   
   Abdul Basit to All   
   Write an assembly language program using   
   02 Dec 23 05:03:31   
   
   From: abdulbasitt9988@nospicedham.gmail.com   
      
   Write an assembly language program using MASM syntax for the given statement.   
   You will be required to write procedures for all the given parts. Write MAIN   
   Procedure to execute all the procedures one by one.   
      
   Part a: Procedure INPUT NAME: Input a name as string terminated by $ and save   
   it in memory (Use function 1 of INT 21H, loop to implement the operation, and   
   register indirect addressing mode to address the memory).   
   Part b: Procedure CASE CONVERSION: Convert the saved string’s case (capital   
   ⇄ small) and save the string with case conversion. (Use logical operation   
   with loop, use based addressing mode to address the memory locations).   
   Part c: Procedure VOWELS: Use part a, calculate the number of vowels in the   
   string. (Use conditional jumps)   
   Part d: Procedure CONSONANTS: Use part a, calculate the number of consonants   
   in the string. (Use conditional jumps)   
   Part e: Procedure BINARY CONVERSION: Use part a, convert the saved ASCII   
   values of whole string to binary values and save the binary characters in the   
   memory. (Use shift or rotate operations, use indexed addressing mode)   
   Part f: Procedure HEXADECIMAL CONVERSION: Use part a, convert the saved ASCII   
   values of whole string to hexadecimal values and save the hexadecimal   
   characters in the memory. (Use multiple shifts/rotate   
   operations along with loop)   
   Part g: Procedure 1’s BITS: Use part e, find the numbers of ones’ bits in   
   the whole string. (Use indexed addressing mode to address the memory).   
   Part h: Procedure 0’s BITS: Use part e, find the number of zeros’ bits in   
   the whole string. (Use based addressing mode to address the memory)   
   Part i: Procedure REVERSE THE STRING: Use part a, reverse the string and save   
   it in the memory. (Use based and indexed addressing mode)   
   Part j: Procedure WITHOUT VOWELS: Use part a & c, remove the vowels from the   
   string and save it in the memory.   
   Part k: Procedure WITHOUT CONSONANTS: Use part a & d, remove the consonants   
   from the string and save it in the memory.   
   Part l: Procedure PRINTING: Print all the strings in the memory separated by   
   new line. (Using function 9 of INT21H).    
      
   use functions and push pop where required, and don't use direct method by   
   using CALL function and RET function.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca