1
0
Fork 0

str.streq - that doesn't exist, there is streq

This commit is contained in:
Alligator-1 2026-07-10 20:41:25 +05:00 committed by GitHub
parent ac70d94712
commit 5e2036c4a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ The expression `utf8(rax)` does not return a number, so it cannot be used as a t
* `dis.next(addr)`: Address of the next instruction from `addr`.
* `dis.prev(addr)`: Address of the previous instruction from `addr`.
* `dis.iscallsystem(addr)`: True if the instruction at `addr` goes to a system module.
* `dis.mnemonic(addr)`: Returns the mnemonic `str` for `addr`. Example: `str.streq(dis.mnemonic(cip), "cpuid")`.
* `dis.mnemonic(addr)`: Returns the mnemonic `str` for `addr`. Example: `streq(dis.mnemonic(cip), "cpuid")`.
* `dis.text(addr)`: Returns the instruction text as a string `addr`. Can be used for conditions, for example: `strstr(dis.text(rip), "rbx")`. **Note**: the instruction text might not exactly match the formatting in the GUI.
* `dis.match(addr, str)`: True if the instruction at `addr` matches the regex in `str`. Example: `dis.match(rip, "test.+, 0x1")`. You can use `dis.text` to see what you can match on.