Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


[FASM] Compare 2 strings filter_list
Author
Message
RE: [FASM] Compare 2 strings #2
Not sure if you need explanation, but here is a quick one:

The code compares two strings, str1 and str2, and displays a message indicating whether they are the same or not.

The CmpStr procedure is defined at the end of the code. It takes two string arguments (str1 and str2) and compares them byte by byte. If the strings are the same, it returns a non-zero value in the eax register. If the strings are not the same, it returns a zero value in eax.

After calling CmpStr, the code checks the value in eax using the test instruction and jumps to the not_the_same label if the strings are not the same. Otherwise, it displays a message indicating that the strings are the same and exits the program.
I plead the fifth.

Reply





Messages In This Thread
[FASM] Compare 2 strings - by Houston1337 - 09-15-2022, 04:14 PM
RE: [FASM] Compare 2 strings - by Endeavor - 12-12-2022, 10:15 AM
RE: [FASM] Compare 2 strings - by Confidential - 02-14-2023, 08:36 AM



Users browsing this thread: 1 Guest(s)