Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/x64dbg/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
torusrxxx committed Nov 18, 2018
2 parents ad137c9 + c02e0af commit 4182877
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions developers/functions/debug/DbgMemGetPageSize.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ Return value description.

## Example

Get page base and size of selected instruction.
```c++
Example code.
SELECTIONDATA sel; // Define Address the slected line in the Disassembly window ( begin , End )
GuiSelectionGet(GUI_DISASSEMBLY, &sel); // Get the value of sel(begin addr , End addr )
duint pagesize = DbgMemGetPageSize(sel.start); // get the page size of the section from the selected memory addr
//Or use the following statement to get page base and size in one call.
duint sctionbase = DbgMemFindBaseAddr(sel.start, &pagesize); // get the base of this section ( begin addr of the section )
```
## Related functions
- List of related functions
- List of related functions
2 changes: 1 addition & 1 deletion introduction/Formatting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Examples

- ``rax: {rax}`` formats to ``rax: 4C76``
- ``password: {s:4*ecx+0x402000}`` formats to ``password: L"s3cret"``

- ``log {x:bswap(rax)}`` if rax=0000000078D333E0 the result will be E033D37800000000 because of bswap fun which reverse the hex value
-------
Plugins
-------
Expand Down

0 comments on commit 4182877

Please sign in to comment.