Hello gys, this is my weakness programming i feel an igonorant when it comes to programming my filed requires from me to take this course and i dont know anything,. sombody can help me with following program please!!:
Write an assembly program called hw3_ex1 , stored in file hw3_ex1.asm , that prompts the user to type a 5-character string. The program reads the first 5 characters of that string and prints two strings. The first string contains the 5 characters entered by the user, but in reverse order. The second string contains the 5 characters entered by the user, but whose ASCII code has been decremented by 32. Match the example shown below, where user input is shown in bold face:
% ./hw3_ex1
Enter a 5-character string: hguot
String #1: tough
String #2: HGUOT
You may assume that the user will always type exactly 5 characters followed by a carriage return (no need to deal with errors, etc.).
Reading a character from the keyboard is done via the read_char macro (see page 17 of the textbook for a description). So you'll have to call this macro 5 times to get the 5 characters.
Remember that when you print a string it should be null-terminated. So, to store a 5-character string that you will print you need to store it in 6 bytes, with the last byte equal to 0.