Conditional Jump Syntax
up vote
0
down vote
favorite
I have encountered some assembly x86_64 code which uses the following syntax for conditional jumps:
JE >
MOV RAX, RBX
:
JE >1
MOV RBX, RAX
1:
This is repeated throughout the procedure.
I found the code from this LDE.
https://github.com/BeaEngine/lde64
The readme says "It was implemented to be assembled with goasm assembler".
What do the characters after the JE instructions do?
How can labels repeat themselves?
How can I convert this to be compiled by MASM?
assembly
add a comment |
up vote
0
down vote
favorite
I have encountered some assembly x86_64 code which uses the following syntax for conditional jumps:
JE >
MOV RAX, RBX
:
JE >1
MOV RBX, RAX
1:
This is repeated throughout the procedure.
I found the code from this LDE.
https://github.com/BeaEngine/lde64
The readme says "It was implemented to be assembled with goasm assembler".
What do the characters after the JE instructions do?
How can labels repeat themselves?
How can I convert this to be compiled by MASM?
assembly
Which precise instruction set and which precise assembler is this? Please edit your question to clarify.
– tripleee
Nov 12 at 6:21
1
Looks like this is discussed in the goasm docs.
– David Wohlferd
Nov 12 at 7:08
@DavidWohlferd So to confirm it either looks up or down for the first match. To convert this I would need to replace all labels and jump with unique ones?
– Will
Nov 12 at 7:20
I have never used goasm, so any advice I offered beyond the docs would be a guess.
– David Wohlferd
Nov 12 at 8:07
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have encountered some assembly x86_64 code which uses the following syntax for conditional jumps:
JE >
MOV RAX, RBX
:
JE >1
MOV RBX, RAX
1:
This is repeated throughout the procedure.
I found the code from this LDE.
https://github.com/BeaEngine/lde64
The readme says "It was implemented to be assembled with goasm assembler".
What do the characters after the JE instructions do?
How can labels repeat themselves?
How can I convert this to be compiled by MASM?
assembly
I have encountered some assembly x86_64 code which uses the following syntax for conditional jumps:
JE >
MOV RAX, RBX
:
JE >1
MOV RBX, RAX
1:
This is repeated throughout the procedure.
I found the code from this LDE.
https://github.com/BeaEngine/lde64
The readme says "It was implemented to be assembled with goasm assembler".
What do the characters after the JE instructions do?
How can labels repeat themselves?
How can I convert this to be compiled by MASM?
assembly
assembly
edited Nov 12 at 6:27
asked Nov 12 at 6:09
Will
1155
1155
Which precise instruction set and which precise assembler is this? Please edit your question to clarify.
– tripleee
Nov 12 at 6:21
1
Looks like this is discussed in the goasm docs.
– David Wohlferd
Nov 12 at 7:08
@DavidWohlferd So to confirm it either looks up or down for the first match. To convert this I would need to replace all labels and jump with unique ones?
– Will
Nov 12 at 7:20
I have never used goasm, so any advice I offered beyond the docs would be a guess.
– David Wohlferd
Nov 12 at 8:07
add a comment |
Which precise instruction set and which precise assembler is this? Please edit your question to clarify.
– tripleee
Nov 12 at 6:21
1
Looks like this is discussed in the goasm docs.
– David Wohlferd
Nov 12 at 7:08
@DavidWohlferd So to confirm it either looks up or down for the first match. To convert this I would need to replace all labels and jump with unique ones?
– Will
Nov 12 at 7:20
I have never used goasm, so any advice I offered beyond the docs would be a guess.
– David Wohlferd
Nov 12 at 8:07
Which precise instruction set and which precise assembler is this? Please edit your question to clarify.
– tripleee
Nov 12 at 6:21
Which precise instruction set and which precise assembler is this? Please edit your question to clarify.
– tripleee
Nov 12 at 6:21
1
1
Looks like this is discussed in the goasm docs.
– David Wohlferd
Nov 12 at 7:08
Looks like this is discussed in the goasm docs.
– David Wohlferd
Nov 12 at 7:08
@DavidWohlferd So to confirm it either looks up or down for the first match. To convert this I would need to replace all labels and jump with unique ones?
– Will
Nov 12 at 7:20
@DavidWohlferd So to confirm it either looks up or down for the first match. To convert this I would need to replace all labels and jump with unique ones?
– Will
Nov 12 at 7:20
I have never used goasm, so any advice I offered beyond the docs would be a guess.
– David Wohlferd
Nov 12 at 8:07
I have never used goasm, so any advice I offered beyond the docs would be a guess.
– David Wohlferd
Nov 12 at 8:07
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53256705%2fconditional-jump-syntax%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Which precise instruction set and which precise assembler is this? Please edit your question to clarify.
– tripleee
Nov 12 at 6:21
1
Looks like this is discussed in the goasm docs.
– David Wohlferd
Nov 12 at 7:08
@DavidWohlferd So to confirm it either looks up or down for the first match. To convert this I would need to replace all labels and jump with unique ones?
– Will
Nov 12 at 7:20
I have never used goasm, so any advice I offered beyond the docs would be a guess.
– David Wohlferd
Nov 12 at 8:07