Using assembly language print a string backward ,going across and going down.
Try this:
INCLUDE Irvine32.inc
.data
buffer byte 20 DUP(0)
byteCount DWORD ?
nameSize DWORD ?
Question byte "Please enter your name." ,0
Greeting byte "Hello " ,0
Statement byte " Here is your name backwards"
.code
main proc
mov edx , OFFSET Question
call WriteString
call CRLF
Call CRLF
mov edx, OFFSET buffer
mov Ecx, SIZEOF buffer
call ReadString
mov nameSize, eax
push edx
mov EDX ,OFFSET greeting
Call WriteString
pop edx
call WriteString
Call CRLF
Call CRLF
mov ecx,nameSize
mov esi,0
L1: movzx eax,buffer[esi] ; get character
push eax ; push on stack
inc esi
loop L1
; Pop the name from the stack in reverse
; and store it in the aName array.
mov ecx,nameSize
mov esi,0
L2: pop eax ; get character
mov buffer[esi],al ; store in string
inc esi
loop L2
mov EDX ,OFFSET buffer
call WriteString ; Write the reversed string that is now in buffer
exit
main ENDP
END
Using assembly language print a string backward ,going across and going down.
Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the user to enter a string which is subsequently displayed in uppercase. It is important to first ensure that string to be converted is in the a-z range. The program does not recognize any space, symbols or any kind of punctuation marks. Any time the user enters any of this character the program is going to repeatedly ask for the...
Using Java only Implement a program that uses a recursive method to print a string backward. Your program must contain a recursive method that prints the string backward. Use appropriate parameters in your method.
Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the user to enter a string which is subsequently displayed in uppercase. It is important to first ensure that string to be converted is in the a-z range. The program does not recognize any space, symbols or any kind of punctuation marks. Any time the user enters any of this character the program is going to repeatedly ask for...
Write a NASM assembly language(run it on DOSBOX) procedure using string instruction. Given two strings, S1 and S2, determine if S2 is a sub string of S1. Sub string example: S1: ‘I am happy today’, S2: ‘happy’, S2 is a substring of S1. S1: ‘I am happy today’, S2: ‘sad’, S2 is not a substring of S1. Call above procedure in an assembly language program and show the result of the procedure.
ASSEMBLY LANGUAGE
Write a program using author's routine, WriteString, to print
"Hello World". This routine will output to the screen any character
data pointed to by the EDX register. It will continue to print
until it runs into the null character (zero). We need only to move
the address into the EDX register and calll his routine. Lookup in
the ASCII code chart the value reqresented by CR and LF. In the
program I will define these values using the...
In this problem, you will write an assembly program (LC-3 assembly language) to process a string starting at memory location x5000, and is terminated by a ‘\0’ character (ASCII value = 0). For a given string beginning atmemory location x5000, convert all the upper-case English letters (A-Z) to lower-case, and all the lower case (a-z) to upper case. For example, if the string is “iLOVEComputerScience252”, the string after the processing should be: “IlovecOMPUTERsCIENCE252”. Store the string after the processing to...
In this problem, you will write an assembly program (LC-3 assembly language) to process a string starting at memory location x5000, and is terminated by a ‘\0’ character (ASCII value = 0). For a given string beginning at memory location x5000, convert all the upper-case English letters (A-Z) to lower-case, and all the lower case (a-z) to upper case. For example, if the string is “iLOVEComputerScience252”, the string after the processing should be: “IlovecOMPUTERsCIENCE252”. Store the string after the processing...
using C codding language, Write a program for following tasks: 1. get string (character array) from user and save it in char input. Assume maximum size of input is going to be 50 characters. 2. print out given input on the screen. 3. print out size of given input. (Hint: sizeof function)
Write a NASM assembly language program(runi it on DOSBOX) Given a string, find the frequency of character ‘a’ in the string. For example, if the string is “it is a nice day” Output will be 2.
Language: ARM assembly Need help writing a program that takes user input as a string and outputs the string with all the vowels replaced with "x". For example, the string "Robot" should output ""Rxbxt"