Comments (1)
With some help, I was able to figure out what's going on.
This seems to be either a documentation issue or a bug here. The documentation states
Lines 1104 to 1113 in b606dde
Either I misunderstood the docs of the
size
field here, or it's incorrect.The Intel manual states
The moffs8, moffs16, moffs32, and moffs64 operands specify a simple offset relative to the segment base, where 8, 16, 32, and 64 refer to the size of the data. The address-size attribute of the instruction determines the size of the offset, either 16, 32, or 64 bits.
So on x86-64, the moffs32
offset needs to be 8 bytes, and it's name moffs32
only refers to the size of the data to be MOV
ed.
Besides that, using a 4byte offset seems possible, but requires an address size override prefix.
So TL;DR: The size
field in DataOffset
doesn't do what i thought it did.
from opcodes.
Related Issues (12)
- Document which instructions write to mask register used as a mask
- How do you generate the XML files? HOT 3
- Incorrect implementation of `Opcode.__str__` HOT 1
- How about considering supporting VBMI2 instructions? HOT 1
- Figure out and document MVEX.E bit HOT 3
- Document RegisterByte class
- Golang names for MOVZX/MOVSX instructions
- Proposal: Adopt pyproject.toml for Project Improvement HOT 2
- AttributeError: 'EVEX' object has no attribute 'mm'. Did you mean: 'mmm'?
- Add x86 SYSCALL instruction HOT 1
- Update PyPI package to fix UnicodeDecodeError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opcodes.