problem1) prepare a program which contains a definition of each data type listed in Table given below. Initialize each variable to a value which is consistent with its data type.
Copy a String Backwards
problem2) prepare a program using LOOP instruction with indirect addressing which copies a string from source to target , reversing the character order in the process. Use the following variables: source BYTE "This is the source string",0 target BYTE SIZEOF source DUP('# ')
Insert the following statements immediately after loop to display the hexadecimal contents of the target string: movesi,OFFSET target ; offset of variable mov ebx,1 ; byte format movecx,SIZEOF target ; counter call DumpMem If your program works correctly, it will display the following sequence of hexadecimal bytes: 67 6E 69 72 74 73 20 65 63 72 75 6F 73 20 65 68 74 20 73 69 20 73 69 68 54.
problem3) prepare the program which clears the screen, locates the cursor near the middle of the screen, prompts the user for two integers, adds the integers, and displays their sum.
problem3 a) Use the solution program from the previous problem as a starting point. Let this new program repeat the similar steps three times, using a loop. Clear the screen after each loop iteration.