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

Add rep and movs opcode/prefix support #31

Merged
merged 4 commits into from Oct 17, 2019

Conversation

@Earlz
Copy link
Collaborator

Earlz commented Oct 12, 2019

This adds rep and movs support and also adds the cld/std opcodes for changing the direction flag. repe/repne support is currently unimplemented!() and will be added in a later PR when a proper opcode such as CMPS is also implemented so that it can be easily tested

vm.set_reg32(Reg32::ESI, vm.reg32(Reg32::ESI).wrapping_add(d));
}else{
vm.set_mem(vm.reg32(Reg32::EDI), SizedValue::Dword(vm.get_mem(vm.reg32(Reg32::ESI), ValueSize::Dword)?.u32_exact()?))?;
//todo DF

This comment has been minimized.

Copy link
@VoR0220

VoR0220 Oct 17, 2019

Collaborator

what is this?

(-1i32) as u32
}else{
1
};

This comment has been minimized.

Copy link
@VoR0220

VoR0220 Oct 17, 2019

Collaborator

what is this?

@VoR0220 VoR0220 merged commit bf27dc2 into master Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.