Skip to content

Commit

Permalink
disasm: Comment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mefistotelis committed Jan 11, 2024
1 parent a12b332 commit 2ed74cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/disassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Disassembler::set_target_and_type(uint32_t addr, const void *data, Instruction *
inst->type = Instruction::RET;
else if (data0 == 0xcb) /* lret */
inst->type = Instruction::RET;
else if (data0 == 0xff) /* jmp near or call near indirect*/
else if (data0 == 0xff) /* jmp near or call near indirect */
{
have_target = false;

Expand Down
7 changes: 7 additions & 0 deletions src/regions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@

class Analyser;

/** Region represents a chunk of code or data between two labels.
*
* For CODE type, the region is a set of instructions with a label at
* start, and either label or jump/ret instruction at end. Remember,
* region is not a whole function - unless there are no jump points
* within that function.
*/
class Region
{
protected:
Expand Down

0 comments on commit 2ed74cf

Please sign in to comment.