capstone/bindings/powershell
Erik Hemming 44ce36d1ad Fix a couple of corner-cases with rarely used m68k instructions. (#1344)
* Bump the "cs_insn.bytes[]" size to 24 (from 16) to support M680x0 instructions with full EA (maximum 11 words)
Added a test for this in test_m68k.s

* Bump the "cs_detail.regs_read[]" size to 16 (from 12) to support M680x0 instructions with full REG_BITS (Dn+An = 16)

* m68k: use immediate mode syntax (#$0) for movem/fmovem instructions with empty register list

* update bindings to match changes to cs_insn and cs_detail
2019-01-21 17:42:01 +08:00
..
Capstone Fix a couple of corner-cases with rarely used m68k instructions. (#1344) 2019-01-21 17:42:01 +08:00
README.md +Get-CapstoneDisassembly 2016-11-10 22:36:07 +01:00

This documentation explains how to install & use the PowerShell binding for Capstone.

Install

Compile the relevant version (x86/x64) of capstone.dll and place it in ./Capstone/Lib/Capstone/.

Alternatively, pre-compiled DLLs can be obtained from the Capstone homepage at http://capstone-engine.org/download

Usage

To use the PowerShell binding, the entire Capstone folder should be added to one of the PowerShell module directories:

# Global PSModulePath path
%Windir%\System32\WindowsPowerShell\v1.0\Modules

# User PSModulePath path
%UserProfile%\Documents\WindowsPowerShell\Modules

Once this is done the module can be initialized by typing “Import-Module Capstone” in a new PowerShell terminal. Further information on the usage of the binding can be obtained with the following command:

Get-Help Get-CapstoneDisassembly -Full