2/16/2025

ACPI application with EfiPy2

Introduction

AcpiAnalyze.pyAcpiRetrieve.pyAcpiTableList.py

These three applications can run on Windows, Linux and UEFI shell.

AcpiRetrieve.py

Retrieve all ACPI tables in current host and save to file with Acpi_XXXX.dat.

The output for example

$ ls -l

total 88

-rw-r--r-- 1 root root   114  二   8 10:52  Acpi_APIC.dat

-rw-r--r-- 1 root root   165  二   8 10:52 'Acpi_ASF!.dat'

-rw-r--r-- 1 root root   176  二   8 10:52  Acpi_DMAR.dat

-rw-r--r-- 1 root root 39858  二   8 10:52  Acpi_DSDT.dat

-rw-r--r-- 1 root root   244  二   8 10:52  Acpi_FACP.dat

-rw-r--r-- 1 root root    64  二   8 10:52  Acpi_FACS.dat

-rw-r--r-- 1 root root    56  二   8 10:52  Acpi_HPET.dat

-rw-r--r-- 1 root root    60  二   8 10:52  Acpi_MCFG.dat

-rw-r--r-- 1 root root    36  二   8 10:52  Acpi_RSDP.dat

-rw-r--r-- 1 root root  2474  二   8 10:52  Acpi_SSDT1.dat

-rw-r--r-- 1 root root  2706  二   8 10:52  Acpi_SSDT2.dat

-rw-r--r-- 1 root root   877  二   8 10:52  Acpi_SSDT.dat

-rw-r--r-- 1 root root   108  二   8 10:52  Acpi_XSDT.dat

$

AcpiTableList.py

$ AcpiTableList.py' -h
usage: AcpiTableList.py [-h] [-t TABLE] [-v]

options:
  -h, --help            show this help message and exit
  -t TABLE, --table TABLE
                        Check if specified ACPI table exist.
  -v, --verbose         List table in verbose.
$

AcpiAnalyze.py

$ AcpiAnalyze.py -h
usage: AcpiAnalyze.py [-h] [-r] [-d] {file,table} ...

positional arguments:
  {file,table}  Analyze ACPI command
    file        parse ACPI file (Windows, Linux, UEFI Shell)
    table       parse ACPI in host (Windows, Linux, UEFI Shell)

options:
  -h, --help    show this help message and exit
  -r, --raw     Dump ACPI raw data.
  -d, --dummy   Analyze ACPI table dummy.
$

Exanple output for analyzing ACPI APIC in current host on Windows
AcpiAnalyze.py' '--raw' 'table' '-t' 'APIC'
Analyze signature b'APIC'
ExtractType: b'APIC', 0
==== ACPI b'APIC' ======
  Header                                                         Struct EFI_ACPI_DESCRIPTION_HEADER
    Signature                                                      0x43495041
    Length                                                         0x0000012C
    Revision                                                       0x04
    Checksum                                                       0x3B
    OemId[0]                                                       0x41 'A'
    OemId[1]                                                       0x43 'C'
    OemId[2]                                                       0x52 'R'
    OemId[3]                                                       0x53 'S'
    OemId[4]                                                       0x59 'Y'
    OemId[5]                                                       0x53 'S'
    OemTableId                                             0x5443445250524341
    OemRevision                                                    0x00000002
    CreatorId                                                      0x35323031
    CreatorRevision                                                0x00040000
  LocalApicAddress                                               0xFEE00000
  Flags                                                          0x00000001
  ProcessorLocalApic_00                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x00
    ApicId                                                         0x00
    Flags                                                          0x00000001
  ProcessorLocalApic_01                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x01
    ApicId                                                         0x02
    Flags                                                          0x00000001
  ProcessorLocalApic_02                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x02
    ApicId                                                         0x04
    Flags                                                          0x00000001
  ProcessorLocalApic_03                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x03
    ApicId                                                         0x06
    Flags                                                          0x00000001
  ProcessorLocalApic_04                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x04
    ApicId                                                         0x01
    Flags                                                          0x00000001
  ProcessorLocalApic_05                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x05
    ApicId                                                         0x03
    Flags                                                          0x00000001
  ProcessorLocalApic_06                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x06
    ApicId                                                         0x05
    Flags                                                          0x00000001
  ProcessorLocalApic_07                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x07
    ApicId                                                         0x07
    Flags                                                          0x00000001
  ProcessorLocalApic_08                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x08
    ApicId                                                         0xFF
    Flags                                                          0x00000000
  ProcessorLocalApic_09                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x09
    ApicId                                                         0xFF
    Flags                                                          0x00000000
  ProcessorLocalApic_0A                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x0A
    ApicId                                                         0xFF
    Flags                                                          0x00000000
  ProcessorLocalApic_0B                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x0B
    ApicId                                                         0xFF
    Flags                                                          0x00000000
  ProcessorLocalApic_0C                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x0C
    ApicId                                                         0xFF
    Flags                                                          0x00000000
  ProcessorLocalApic_0D                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x0D
    ApicId                                                         0xFF
    Flags                                                          0x00000000
  ProcessorLocalApic_0E                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x0E
    ApicId                                                         0xFF
    Flags                                                          0x00000000
  ProcessorLocalApic_0F                                          Struct EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_STRUCTURE
    Type                                                           0x00
    Length                                                         0x08
    AcpiProcessorUid                                               0x0F
    ApicId                                                         0xFF
    Flags                                                          0x00000000
  IoApic_00                                                      Struct EFI_ACPI_2_0_IO_APIC_STRUCTURE
    Type                                                           0x01
    Length                                                         0x0C
    IoApicId                                                       0x02
    Reserved                                                       0x00
    IoApicAddress                                                  0xFEC00000
    GlobalSystemInterruptBase                                      0x00000000
  InterruptSourceOverride_00                                     Struct EFI_ACPI_2_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
    Type                                                           0x02
    Length                                                         0x0A
    Bus                                                            0x00
    Source                                                         0x00
    GlobalSystemInterrupt                                          0x00000002
    Flags                                                          0x0000
  InterruptSourceOverride_01                                     Struct EFI_ACPI_2_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
    Type                                                           0x02
    Length                                                         0x0A
    Bus                                                            0x00
    Source                                                         0x09
    GlobalSystemInterrupt                                          0x00000009
    Flags                                                          0x000D
  LocalApicNmi_00                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x01
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_01                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x02
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_02                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x03
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_03                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x04
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_04                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x05
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_05                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x06
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_06                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x07
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_07                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x08
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_08                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x09
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_09                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x0A
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_0A                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x0B
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_0B                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x0C
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_0C                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x0D
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_0D                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x0E
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_0E                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x0F
    Flags                                                          0x0005
    LocalApicLint                                                  0x01
  LocalApicNmi_0F                                                Struct EFI_ACPI_6_5_LOCAL_APIC_NMI_STRUCTURE
    Type                                                           0x04
    Length                                                         0x06
    AcpiProcessorUid                                               0x10
    Flags                                                          0x0005
    LocalApicLint                                                  0x01

==== ACPI RAW data ======
            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F  01234567 89ABCDEF
------------------------------------------------------------------------------
00000000   41 50 49 43 2C 01 00 00  04 3B 41 43 52 53 59 53  APIC,... .;ACRSYS
00000010   41 43 52 50 52 44 43 54  02 00 00 00 31 30 32 35  ACRPRDCT ....1025
00000020   00 00 04 00 00 00 E0 FE  01 00 00 00 00 08 00 00  ........ ........
00000030   01 00 00 00 00 08 01 02  01 00 00 00 00 08 02 04  ........ ........
00000040   01 00 00 00 00 08 03 06  01 00 00 00 00 08 04 01  ........ ........
00000050   01 00 00 00 00 08 05 03  01 00 00 00 00 08 06 05  ........ ........
00000060   01 00 00 00 00 08 07 07  01 00 00 00 00 08 08 FF  ........ ........
00000070   00 00 00 00 00 08 09 FF  00 00 00 00 00 08 0A FF  ........ ........
00000080   00 00 00 00 00 08 0B FF  00 00 00 00 00 08 0C FF  ........ ........
00000090   00 00 00 00 00 08 0D FF  00 00 00 00 00 08 0E FF  ........ ........
000000A0   00 00 00 00 00 08 0F FF  00 00 00 00 01 0C 02 00  ........ ........
000000B0   00 00 C0 FE 00 00 00 00  02 0A 00 00 02 00 00 00  ........ ........
000000C0   00 00 02 0A 00 09 09 00  00 00 0D 00 04 06 01 05  ........ ........
000000D0   00 01 04 06 02 05 00 01  04 06 03 05 00 01 04 06  ........ ........
000000E0   04 05 00 01 04 06 05 05  00 01 04 06 06 05 00 01  ........ ........
000000F0   04 06 07 05 00 01 04 06  08 05 00 01 04 06 09 05  ........ ........
00000100   00 01 04 06 0A 05 00 01  04 06 0B 05 00 01 04 06  ........ ........
00000110   0C 05 00 01 04 06 0D 05  00 01 04 06 0E 05 00 01  ........ ........
00000120   04 06 0F 05 00 01 04 06  10 05 00 01              ........ ....

2/15/2025

HexDump

Python version

Application

HexDumpSample.py

Library

HexDump.py

Usage:

  It is included in the sample code. The result is

1. =============================================================================
Try to dump binary data via HexDump b'\x01\x02ab'

             0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F  01234567 89ABCDEF
 ------------------------------------------------------------------------------
 00000000   01 02 61 62                                       ..ab

2. =============================================================================
Try to dump binary data via HexDump b'\x01\x02abcded\x03\x04\x05\x06\x07\x08\t\n\x0b\x00\r\x0e\x0f\x10\x11\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04abcded\xaa'

             0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F  01234567 89ABCDEF
 ------------------------------------------------------------------------------
 00001000   01 02 61 62 63 64 65 64  03 04 05 06 07 08 09 0A  ..abcded ........
 00001010   0B 00 0D 0E 0F 10 11 04  04 04 04 04 04 04 04 04  ........ ........
 00001020   04 04 04 61 62 63 64 65  64 AA                    ...abcde d.

3. ============================================================================
             0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F  01234567 89ABCDEF
 ------------------------------------------------------------------------------
 00001000         01 02 61 62 63 64  65 64 03 04 05 06 07 08    ..abcd ed......
 00001010   09 0A 0B 00 0D 0E 0F 10  11 04 04 04 04 04 04 04  ........ ........
 00001020   04 04 04 04 04 61 62 63  64 65 64 AA              .....abc ded.
 00001010   09 0A 0B 00 0D 0E 0F 10  11 04 04 04 04 04 04 04  ........ ........
 00001020   04 04 04 04 04 61 62 63  64 65 64 AA              .....abc ded.

4. ============================================================================
             0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F  01234567 89ABCDEF
 ------------------------------------------------------------------------------
 00001000                                  01 02 61 62 63 64             ..abcd
 00001010   65 64 03 04 05 06 07 08  09 0A 0B 00 0D 0E 0F 10  ed...... ........
 00001020   11 04 04 04 04 04 04 04  04 04 04 04 04 61 62 63  ........ .....abc
 00001030   64 65 64 AA                                       ded.

C version

HexDump.c

Usage:

  It is included in the sample code. The result is

$ ./HexDump

//

// No title, ShowOffset:0, No AddressBegin

//

HexDump (NULL, 0, 0xFFFFFFFF, s1, sizeof (s1));


0D 0A 03 41 42 43 44 45  46 47 48 49 4A 4B 4C 4D | ...ABCDEFGHIJKLM

4E 4F 50 51 52 53 54 55  56 57 58 59 5A 61 62 63 | NOPQRSTUVWXYZabc

64 65 66 67 68 69 6A 6B  6C 6D 6E 6F 70 71 72 73 | defghijklmnopqrs

74 75 76 77 78 79 7A 41  42 43 44 45 46 47 48 49 | tuvwxyzABCDEFGHI

4A 4B 4C 4D 4E 4F 50 51  52 00                   | JKLMNOPQR.



//

// No title, ShowOffset:1, No AddressBegin

//

HexDump (NULL, 1, 0xFFFFFFFF, s1, sizeof (s1));


 0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

=======================  =======================   ================

0D 0A 03 41 42 43 44 45  46 47 48 49 4A 4B 4C 4D | ...ABCDEFGHIJKLM

4E 4F 50 51 52 53 54 55  56 57 58 59 5A 61 62 63 | NOPQRSTUVWXYZabc

64 65 66 67 68 69 6A 6B  6C 6D 6E 6F 70 71 72 73 | defghijklmnopqrs

74 75 76 77 78 79 7A 41  42 43 44 45 46 47 48 49 | tuvwxyzABCDEFGHI

4A 4B 4C 4D 4E 4F 50 51  52 00                   | JKLMNOPQR.



//

// No title, ShowOffset:0, Show AddressBegin

//

HexDump (NULL, 0, 0x123, s1, sizeof (s1));


0x00000120          0D 0A 03 41 42  43 44 45 46 47 48 49 4A |    ...ABCDEFGHIJ

0x00000130 4B 4C 4D 4E 4F 50 51 52  53 54 55 56 57 58 59 5A | KLMNOPQRSTUVWXYZ

0x00000130 61 62 63 64 65 66 67 68  69 6A 6B 6C 6D 6E 6F 70 | abcdefghijklmnop

0x00000130 71 72 73 74 75 76 77 78  79 7A 41 42 43 44 45 46 | qrstuvwxyzABCDEF

0x00000130 47 48 49 4A 4B 4C 4D 4E  4F 50 51 52 00          | GHIJKLMNOPQR.



//

// No title, ShowOffset:1, Show AddressBegin

//

HexDump (NULL, 1, 0x123, s1, sizeof (s1));


            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120          0D 0A 03 41 42  43 44 45 46 47 48 49 4A |    ...ABCDEFGHIJ

0x00000130 4B 4C 4D 4E 4F 50 51 52  53 54 55 56 57 58 59 5A | KLMNOPQRSTUVWXYZ

0x00000130 61 62 63 64 65 66 67 68  69 6A 6B 6C 6D 6E 6F 70 | abcdefghijklmnop

0x00000130 71 72 73 74 75 76 77 78  79 7A 41 42 43 44 45 46 | qrstuvwxyzABCDEF

0x00000130 47 48 49 4A 4B 4C 4D 4E  4F 50 51 52 00          | GHIJKLMNOPQR.



//

// With title, ShowOffset:0, no AddressBegin

//

HexDump ("Title: ShowOffset:0,  AddressBegin: 0xFFFFFFFF", 0, 0xFFFFFFFF, s1, sizeof (s1));


Title: ShowOffset:0,  AddressBegin: 0xFFFFFFFF

-------------------------------------------------------------------

0D 0A 03 41 42 43 44 45  46 47 48 49 4A 4B 4C 4D | ...ABCDEFGHIJKLM

4E 4F 50 51 52 53 54 55  56 57 58 59 5A 61 62 63 | NOPQRSTUVWXYZabc

64 65 66 67 68 69 6A 6B  6C 6D 6E 6F 70 71 72 73 | defghijklmnopqrs

74 75 76 77 78 79 7A 41  42 43 44 45 46 47 48 49 | tuvwxyzABCDEFGHI

4A 4B 4C 4D 4E 4F 50 51  52 00                   | JKLMNOPQR.



//

// With title, ShowOffset:0, show AddressBegin

//

HexDump ("Title: ShowOffset:0,  AddressBegin: 0x120", 0, 0x120, s1, sizeof (s1));


Title: ShowOffset:0,  AddressBegin: 0x120

------------------------------------------------------------------------------

0x00000120 0D 0A 03 41 42 43 44 45  46 47 48 49 4A 4B 4C 4D | ...ABCDEFGHIJKLM

0x00000130 4E 4F 50 51 52 53 54 55  56 57 58 59 5A 61 62 63 | NOPQRSTUVWXYZabc

0x00000130 64 65 66 67 68 69 6A 6B  6C 6D 6E 6F 70 71 72 73 | defghijklmnopqrs

0x00000130 74 75 76 77 78 79 7A 41  42 43 44 45 46 47 48 49 | tuvwxyzABCDEFGHI

0x00000130 4A 4B 4C 4D 4E 4F 50 51  52 00                   | JKLMNOPQR.



//

// With title, ShowOffset:0, Show AddressBegin

//

HexDump ("Title: ShowOffset:0,  AddressBegin: 0x123", 0, 0x123, s1, sizeof (s1));


Title: ShowOffset:0,  AddressBegin: 0x123

------------------------------------------------------------------------------

0x00000120          0D 0A 03 41 42  43 44 45 46 47 48 49 4A |    ...ABCDEFGHIJ

0x00000130 4B 4C 4D 4E 4F 50 51 52  53 54 55 56 57 58 59 5A | KLMNOPQRSTUVWXYZ

0x00000130 61 62 63 64 65 66 67 68  69 6A 6B 6C 6D 6E 6F 70 | abcdefghijklmnop

0x00000130 71 72 73 74 75 76 77 78  79 7A 41 42 43 44 45 46 | qrstuvwxyzABCDEF

0x00000130 47 48 49 4A 4B 4C 4D 4E  4F 50 51 52 00          | GHIJKLMNOPQR.



//

// With title, ShowOffset:1, no AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0xFFFFFFFF", 1, 0xFFFFFFFF, s1, sizeof (s1));


Title: ShowOffset:1,  AddressBegin: 0xFFFFFFFF

-------------------------------------------------------------------

 0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

=======================  =======================   ================

0D 0A 03 41 42 43 44 45  46 47 48 49 4A 4B 4C 4D | ...ABCDEFGHIJKLM

4E 4F 50 51 52 53 54 55  56 57 58 59 5A 61 62 63 | NOPQRSTUVWXYZabc

64 65 66 67 68 69 6A 6B  6C 6D 6E 6F 70 71 72 73 | defghijklmnopqrs

74 75 76 77 78 79 7A 41  42 43 44 45 46 47 48 49 | tuvwxyzABCDEFGHI

4A 4B 4C 4D 4E 4F 50 51  52 00                   | JKLMNOPQR.



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x120", 1, 0x120, s1, sizeof (s1));


Title: ShowOffset:1,  AddressBegin: 0x120

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120 0D 0A 03 41 42 43 44 45  46 47 48 49 4A 4B 4C 4D | ...ABCDEFGHIJKLM

0x00000130 4E 4F 50 51 52 53 54 55  56 57 58 59 5A 61 62 63 | NOPQRSTUVWXYZabc

0x00000130 64 65 66 67 68 69 6A 6B  6C 6D 6E 6F 70 71 72 73 | defghijklmnopqrs

0x00000130 74 75 76 77 78 79 7A 41  42 43 44 45 46 47 48 49 | tuvwxyzABCDEFGHI

0x00000130 4A 4B 4C 4D 4E 4F 50 51  52 00                   | JKLMNOPQR.



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x120", 1, 0x120, s2, sizeof (s2));


Title: ShowOffset:1,  AddressBegin: 0x120

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120 00 01 02 03 04 05 06 07  08 09 0A 0B 0C 0D 0E 0F | ................

0x00000130 10 11 12 13 14 15 16 17  18 19 1A 1B 1C 1D 1E 1F | ................

0x00000130 20 21 22 23 24 25 26 27  28 29 2A 2B 2C 2D 2E 2F |  !"#$%&'()*+,-./

0x00000130 30 31 32 33 34 35 36 37  38 39 3A 3B 3C 3D 3E 3F | 0123456789:;<=>?

0x00000130 40 41 42 43 44 45 46 47  48 49 4A 4B 4C 4D 4E 4F | @ABCDEFGHIJKLMNO

0x00000130 50 51 52 53 54 55 56 57  58 59 5A 5B 5C 5D 5E 5F | PQRSTUVWXYZ[\]^_

0x00000130 60 61 62 63 64 65 66 67  68 69 6A 6B 6C 6D 6E 6F | `abcdefghijklmno

0x00000130 70 71 72 73 74 75 76 77  78 79 7A 7B 7C 7D 7E 7F | pqrstuvwxyz{|}~.

0x00000130 80 81 82 83 84 85 86 87  88 89 8A 8B 8C 8D 8E 8F | ................

0x00000130 90 91 92 93 94 95 96 97  98 99 9A 9B 9C 9D 9E 9F | ................

0x00000130 A0 A1 A2 A3 A4 A5 A6 A7  A8 A9 AA AB AC AD AE AF | ................

0x00000130 B0 B1 B2 B3 B4 B5 B6 B7  B8 B9 BA BB BC BD BE BF | ................

0x00000130 C0 C1 C2 C3 C4 C5 C6 C7  C8 C9 CA CB CC CD CE CF | ................

0x00000130 D0 D1 D2 D3 D4 D5 D6 D7  D8 D9 DA DB DC DD DE DF | ................

0x00000130 E0 E1 E2 E3 E4 E5 E6 E7  E8 E9 EA EB EC ED EE EF | ................

0x00000130 F0 F1 F2 F3 F4 F5 F6 F7  F8 F9 FA FB FC FD FE FF | ................



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x121", 1, 0x121, s2, sizeof (s2));


Title: ShowOffset:1,  AddressBegin: 0x121

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120    00 01 02 03 04 05 06  07 08 09 0A 0B 0C 0D 0E |  ...............

0x00000130 0F 10 11 12 13 14 15 16  17 18 19 1A 1B 1C 1D 1E | ................

0x00000130 1F 20 21 22 23 24 25 26  27 28 29 2A 2B 2C 2D 2E | . !"#$%&'()*+,-.

0x00000130 2F 30 31 32 33 34 35 36  37 38 39 3A 3B 3C 3D 3E | /0123456789:;<=>

0x00000130 3F 40 41 42 43 44 45 46  47 48 49 4A 4B 4C 4D 4E | ?@ABCDEFGHIJKLMN

0x00000130 4F 50 51 52 53 54 55 56  57 58 59 5A 5B 5C 5D 5E | OPQRSTUVWXYZ[\]^

0x00000130 5F 60 61 62 63 64 65 66  67 68 69 6A 6B 6C 6D 6E | _`abcdefghijklmn

0x00000130 6F 70 71 72 73 74 75 76  77 78 79 7A 7B 7C 7D 7E | opqrstuvwxyz{|}~

0x00000130 7F 80 81 82 83 84 85 86  87 88 89 8A 8B 8C 8D 8E | ................

0x00000130 8F 90 91 92 93 94 95 96  97 98 99 9A 9B 9C 9D 9E | ................

0x00000130 9F A0 A1 A2 A3 A4 A5 A6  A7 A8 A9 AA AB AC AD AE | ................

0x00000130 AF B0 B1 B2 B3 B4 B5 B6  B7 B8 B9 BA BB BC BD BE | ................

0x00000130 BF C0 C1 C2 C3 C4 C5 C6  C7 C8 C9 CA CB CC CD CE | ................

0x00000130 CF D0 D1 D2 D3 D4 D5 D6  D7 D8 D9 DA DB DC DD DE | ................

0x00000130 DF E0 E1 E2 E3 E4 E5 E6  E7 E8 E9 EA EB EC ED EE | ................

0x00000130 EF F0 F1 F2 F3 F4 F5 F6  F7 F8 F9 FA FB FC FD FE | ................

0x00000130 FF                                               | .



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x120", 1, 0x120, s3, sizeof (s3));


Title: ShowOffset:1,  AddressBegin: 0x120

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120 00 01 02 03 04 05 06 07  08 09 0A 0B 0C 0D 0E 0F | ................

0x00000130 10 11 12 13 14 15 16 17  18 19 1A 1B 1C 1D 1E 1F | ................

0x00000130 20 21 22 23 24 25 26 27                          |  !"#$%&'



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x121", 1, 0x121, s3, sizeof (s3));


Title: ShowOffset:1,  AddressBegin: 0x121

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120    00 01 02 03 04 05 06  07 08 09 0A 0B 0C 0D 0E |  ...............

0x00000130 0F 10 11 12 13 14 15 16  17 18 19 1A 1B 1C 1D 1E | ................

0x00000130 1F 20 21 22 23 24 25 26  27                      | . !"#$%&'



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x120", 1, 0x120, s4, sizeof (s4));


Title: ShowOffset:1,  AddressBegin: 0x120

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120 30 31 32 33 34 35 36 37  38 39 3A 3B 3C 3D 3E 3F | 0123456789:;<=>?

0x00000130 40 41 42 43 44 45 46 47  48 49 4A 4B 4C 4D 4E 4F | @ABCDEFGHIJKLMNO

0x00000130 50 51 52 53 54 55 56                             | PQRSTUV



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x121", 1, 0x121, s4, sizeof (s4));


Title: ShowOffset:1,  AddressBegin: 0x121

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120    30 31 32 33 34 35 36  37 38 39 3A 3B 3C 3D 3E |  0123456789:;<=>

0x00000130 3F 40 41 42 43 44 45 46  47 48 49 4A 4B 4C 4D 4E | ?@ABCDEFGHIJKLMN

0x00000130 4F 50 51 52 53 54 55 56                          | OPQRSTUV



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x120", 1, 0x120, s5, sizeof (s5));


Title: ShowOffset:1,  AddressBegin: 0x120

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120 30 31 32 33 34 35 36 37  38 39 3A 3B 3C 3D 3E 3F | 0123456789:;<=>?

0x00000130 40 41 42 43 44 45 46 47  48 49 4A 4B 4C 4D 4E 4F | @ABCDEFGHIJKLMNO

0x00000130 50 51 52 53 54 55 56 57  58 59                   | PQRSTUVWXY



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x121", 1, 0x121, s5, sizeof (s5));


Title: ShowOffset:1,  AddressBegin: 0x121

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120    30 31 32 33 34 35 36  37 38 39 3A 3B 3C 3D 3E |  0123456789:;<=>

0x00000130 3F 40 41 42 43 44 45 46  47 48 49 4A 4B 4C 4D 4E | ?@ABCDEFGHIJKLMN

0x00000130 4F 50 51 52 53 54 55 56  57 58 59                | OPQRSTUVWXY



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x127", 1, 0x127, s5, sizeof (s5));


Title: ShowOffset:1,  AddressBegin: 0x127

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120                      30  31 32 33 34 35 36 37 38 |        012345678

0x00000130 39 3A 3B 3C 3D 3E 3F 40  41 42 43 44 45 46 47 48 | 9:;<=>?@ABCDEFGH

0x00000130 49 4A 4B 4C 4D 4E 4F 50  51 52 53 54 55 56 57 58 | IJKLMNOPQRSTUVWX

0x00000130 59                                               | Y



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x128", 1, 0x128, s5, sizeof (s5));


Title: ShowOffset:1,  AddressBegin: 0x128

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120                          30 31 32 33 34 35 36 37 |         01234567

0x00000130 38 39 3A 3B 3C 3D 3E 3F  40 41 42 43 44 45 46 47 | 89:;<=>?@ABCDEFG

0x00000130 48 49 4A 4B 4C 4D 4E 4F  50 51 52 53 54 55 56 57 | HIJKLMNOPQRSTUVW

0x00000130 58 59                                            | XY



//

// With title, ShowOffset:1, show AddressBegin

//

HexDump ("Title: ShowOffset:1,  AddressBegin: 0x12F", 1, 0x12F, s5, sizeof (s5));


Title: ShowOffset:1,  AddressBegin: 0x12F

------------------------------------------------------------------------------

            0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F   0123456789ABCDEF

========== =======================  =======================   ================

0x00000120                                               30 |                0

0x00000130 31 32 33 34 35 36 37 38  39 3A 3B 3C 3D 3E 3F 40 | 123456789:;<=>?@

0x00000130 41 42 43 44 45 46 47 48  49 4A 4B 4C 4D 4E 4F 50 | ABCDEFGHIJKLMNOP

0x00000130 51 52 53 54 55 56 57 58  59                      | QRSTUVWXY