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

AT&T output has operands in reverse order and other errors #1

Open
houseofwealth opened this issue Nov 20, 2020 · 0 comments
Open

AT&T output has operands in reverse order and other errors #1

houseofwealth opened this issue Nov 20, 2020 · 0 comments

Comments

@houseofwealth
Copy link

running the convertor on

jmp	eax
test	eax,	eax
add	eax,	0x2
int 0x0
mov	eax,	data_401022
jmp	0x401019
je	0x401019
mov	eax,	data_401020
mov	eax,	data_401024
add	byte	[eax],	al
test	ebx,	ebx
je	0x40100b
add	byte	[eax],	al

generates the following

jmp	eax	
test	eax,l	%eax
add	eax,	$0x2
int	0x0	
mov	eax,	$data_401022
jmp	0x401019	
je	0x401019	
mov	eax,	$data_401020
mov	eax,	$data_401024
add	byteb	%al,(%eax)
test	ebx,l	%ebx
je	0x40100b	
add	byte	$a,(%eax)
``
other errors are that the `test eax, eax` appears to be incorrectly converted
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