Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

under ATT style, it treats decimal numbers as hexadecimal numbers. that is very painful. #569

Open
bbqz007 opened this issue Dec 22, 2023 · 0 comments

Comments

@bbqz007
Copy link

bbqz007 commented Dec 22, 2023

code generated by gcc

	.align 4
_MessageBoxA:
	.long	19089016
LC0:
	.ascii "\0"
	pushl	%ebp
	movl	%esp, %ebp
	subl	$24, %esp
	movl	_MessageBoxA, %eax
	movl	$LC0, %ecx
	movl	$LC0, %edx
	movl	$0, 12(%esp)
	movl	%ecx, 8(%esp)
	movl	%edx, 4(%esp)
	movl	$0, (%esp)
	call	*%eax
	nop
	leave
	ret

movl $0, 12(%esp), keystone assembles to movl $0, 0x12(%esp).

what ?

while as assembles to movl $0, 12(%esp) correctly. 12 not 0x12.

my using keystone is keystone_engine-0.9.2-py2.py3-none-win32 from pypi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant