Question: Assembly language X86 processors Using the String Reverse program as a starting point. Modify the program so the user can input a string containing between
Using the String Reverse program as a starting point. Modify the program so the user can input a string containing between 1 and 50 characters Reverse the content from the user's input. ReadString: The ReadString procedure reads a string from the keyboard, stopping when the user presses the Enter key. Pass the offset of a buffer in EDX and set ECX to the maximum number of characters the user can enter, plus 1 (to save space for the terminating null byte). The procedure returns the count of the number of characters typed by the user in EAX Sample call: data buffer BYTE 51 DUP (O) byteCount DHORD? i input buffer ; holds cunter code mov edx, OFFSET buffer mov ecx,SIZEOF buffer call Readstring mov byteCount, eax i point to the buffer i specify max characters i input the string ; number of characters CAW ease enter one string: ere is a new string entered by the user!! Press any key to continue RevStr input.asm RevStr input.asm C Columns: Auto Columns: Auto Here is a new string entered by the userlI !Iresu eht yb deretne gnirts wen a si ereH 0123456 0123456
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
