Code: Select all
cmake -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_ARCHITECTURE_DEFAULT=OFF -DCAPSTONE_X86_SUPPORT=ON ..
Code: Select all
cmake -G "MinGW Makefiles" -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_ARCHITECTURE_DEFAULT=OFF -DCAPSTONE_X86_SUPPORT=ON ..
Otherwise it should not crash on most real mode games (most games made before 1993). Please send me link to the game you are converting.
Finding the right flags: There is some recommended set of flags, e.g.
Code: Select all
-load 01ed -ctx -reloc -segofscomment -stackguard -recursive start
Finding the tables - simply run the game and wait util it reaches some "callIndirect" function. It should throw an assertion in Visual Studio, note down the segment and offset (arguments to callIndirect) and add to the commandline
Code: Select all
-indirect 1234:5678
Code: Select all
-indirect 2da3:0cb7,2a41:0359,2188:3f13,2188:1fb9,2188:2850...
Code: Select all
-jumptable 1020:42e6 168f:6efb 30 callwords bx
To get more familiar with CLI interface, just look for cico.sh scripts in the https://github.com/gabonator/Projects/t ... it/gamelib folder