mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-07-01 04:40:25 +03:00
Remove debug output from Disassembler for cleaner output
This commit is contained in:
@ -128,9 +128,6 @@ public class Disassembler
|
|||||||
// The _baseAddress is the section's RVA (stored in Program.cs)
|
// The _baseAddress is the section's RVA (stored in Program.cs)
|
||||||
// We need to calculate the offset within the section by subtracting the section's RVA from the start RVA
|
// We need to calculate the offset within the section by subtracting the section's RVA from the start RVA
|
||||||
int startOffset = (int)(startRva - _baseAddress);
|
int startOffset = (int)(startRva - _baseAddress);
|
||||||
|
|
||||||
// Debug output to verify addresses
|
|
||||||
Console.WriteLine($"Debug: startRva=0x{startRva:X8}, sectionRVA=0x{_baseAddress:X8}, calculated offset=0x{startOffset:X8}");
|
|
||||||
|
|
||||||
// Validate the offset is within bounds
|
// Validate the offset is within bounds
|
||||||
if (startOffset < 0 || startOffset >= _length)
|
if (startOffset < 0 || startOffset >= _length)
|
||||||
|
Reference in New Issue
Block a user