8086 Microprocessor
Write an ASSEMBLY program that is capable of copying a string in
reversed order
For Example:
If entered: Hello World!
The string in reversed order must be:
!dlroW olleH
*MUST USE ASSEMBLY LANGUAGE *
Data Segment
str db \'String_Reverse\',\'$\'
strlen dw $-str
strrev db 20 dup(\' \')
Data Ends
Code Segment
Assume cs:code, ds:data
Begin:
mov ax, data
mov ds, ax
mov es, ax
mov cx, strlen
add cx, -2
lea si, str
lea di, strrev
add si, strlen
add si, -2
L1:
mov al, [si]
mov [di], al
dec si
inc di
loop L1
mov al, [si]
mov [di], al
inc di
mov dl, \'$\'
mov [di], dl
Print:
mov ah, 09h
lea dx, strrev
int 21h
Exit:
mov ax, 4c00h
int 21h
Code Ends
End Begin
8086 Microprocessor Write an ASSEMBLY program that is capable of copying a string in reversed order...
Write code by Assembly language
Microprocessor - 8086
Example An sbit signed int array of size 1024 elements is starting at slooh, Write apiece of code to sort the array asending order ?
Write a program in assembly code (8088/8086) to determine the Average, Highest, Lowest grade in microprocessor course (final grade =100) if the class has 30 students. Write the program in the emulator(8086) and show the input data and the results (Average grade- Highest grade- Lowest Grade). Note: Suppose the grades of the 30 students.
Write a program in MIPS to accept a string from a user, reverse that string and print it out to the user. You must write a procedure that performs the reversal task. Example: Please Enter a String: Hello How Are You Reversed String: uoY erA woH olleH
Please write in assembly language 8086 windows32 Question 3: Write an assembly program that has a macro maximum that finds the larger of two numbers inputted by the user
. Write an 8086 assembly language program to find the prime numbers among 100 bytes of data in an array stored from the address 4000H: 1000H in the data segment and store the result from the address 4000H: 3000H. write the code using 8086 assembly language only i do not want any other language If you Do not sure please do not solve it
Write an 8086 assembly language program to find the prime numbers among 100 bytes of data in an array stored from the address 4000H: 1000H in the data segment and store the result from the address 4000H: 3000H.
Using C,
Write a function reverse which takes a string as an argument, reverses the string and returns the reversed string. Note; you should not return a string that you created inside the reverse function! For example: Test char str[]-"hello" printf("%s", reverse (str)); Result olleh
Write a C++ program that reverses a file. More specifically, given an input file (input.txt) your program will reverse every line in the input. This program does not have an output file, as it modifies the input file directly. You may assume that your input file has 1000 lines or less, if this helps. sample input: Hello World! I study C++ following output: !dlroW olleH ++C yduts I
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.
Write a basic ARM program that takes a string as input, then outputs a string that replaces all the vowels in the input string with 'x'. Vowels: a, A, e, E, i, I, o, O, u, U. **I am using DS-5 Eclipse Community Workspace with ARM assembly language.** The program should give the following input prompt: "Input a string: " Then, the program should output the string with the vowel(s) replaced with x. The program should terminate upon printing the...