Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


registerBinUtil

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Jun 08, 2017 6:57 am    Post subject: registerBinUtil Reply with quote

I want to test external (dis)assembler registered with registerBinUtil but I do not know which "Intel Compiler" software I have to download and how to configure it (e.g. ASParam LDParam). There's a lot of new games and applications (e.g. Dolphin 5.0) with many SSE4.2 instructions...
_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Thu Jun 08, 2017 8:01 am    Post subject: Reply with quote

apparently that is currently broken.

I don't have time to fix this, but the issue is at binutils.pas TBinUtils.Disassemble()
it's an issue with the tprocess class not properly dealing with the output

you can get a binutils package from here (including the config needed to use them)
https://mega.nz/#!9SwyWDKY!24eE_WksZmAynD4oZBqAeKU30yfSK4a-sjjem2kPSEg

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Jun 08, 2017 9:33 am    Post subject: Reply with quote

I'm using MinGW-W64 installed with mingw-w64-install.exe (builds-4.3.0, gcc-6.3.0, rev2) and this config:

Code:
local mingw32={}
mingw32.Name="MinGW-W64"
mingw32.Description="32bit"
mingw32.Architecture="i386:intel"
mingw32.OBJDUMPParam='-Mi386,intel,intel-mnemonic'
mingw32.ASParam='"--32" "-n" "-msyntax=intel" "-mmnemonic=intel" "-mnaked-reg"'
mingw32.LDParam=''
mingw32.Path=[[C:\mingw-w64\mingw32\bin]]
mingw32.Prefix=""
mingw32.DisassemblerCommentChar="#"
registerBinUtil(mingw32)


local mingw64={}
mingw64.Name="MinGW-W64"
mingw64.Description="64bit"
mingw64.Architecture="i386:x86-64:intel"
mingw64.OBJDUMPParam='-Mx86-64,intel,intel-mnemonic'
mingw64.ASParam='"--64" "-n" "-msyntax=intel" "-mmnemonic=intel" "-mnaked-reg"'
mingw64.LDParam=''
mingw64.Path=[[C:\mingw-w64\mingw64\bin]]
mingw64.Prefix=""
mingw64.DisassemblerCommentChar="#"
registerBinUtil(mingw64)

And it doesn't work well.


I thought "intel compiler" would work better...

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Thu Jun 08, 2017 9:53 am    Post subject: Reply with quote

Not well as in it doesn't recognize sse instructions properly? Or nothing different at all? (you did choose "view->binutils->mingw-64" ? (just asking, just in case you didn't see it... ) )
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Jun 08, 2017 9:57 am    Post subject: Reply with quote

32bit CE will eventually crash when I scroll with mouse wheel or arrows/pgup/pgdown keyboard buttons.
64bit CE - instant freeze and then crash


EDIT:
command line:
"C:\mingw-w64\mingw64\bin\objdump" -Mx86-64,intel,intel-mnemonic --adjust-vma=0x100016810 --stop-address=0x100016A10 --prefix-addresses -z -bbinary -D -mi386:x86-64:intel "D:\TMPTMP\tmp\TMP00025.tmp"


TMP00025.tmp has valid data and size is 512 bytes.

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Jun 09, 2017 11:53 pm    Post subject: Reply with quote

there is an issue where ce can't properly wait for the end of objdump. (could be lazarus)
try changing it to a version where it gets the data without using tprocess (there is a wrapper for it but i forgot the name)

(i'm currently on vacation in italy (or will be in a few hours) so can't do anyrhing for a week)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Feb 19, 2018 3:47 pm    Post subject: Reply with quote

I forgot about this topic... luckily it was still on the first page in "Cheat Engine Tutorials" forum section...

Just in case someone wants to know. It's fixed in SVN, DB made a patch back then on Jul 3, 2017.

So, get the source code and compile, or download custom build newer than Jul 3, 2017 and it should work.

Default


"MinGW 64bit"

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites