Giter Club home page Giter Club logo

x86assembler's People

Contributors

arsenal591 avatar

Watchers

 avatar  avatar  avatar  avatar

x86assembler's Issues

opcode表格的存储方式

表格映射:
mnemonic(DWORD):指令助记符字符串的起始地址
addr(DWORD):表格的起始地址

表格
length(DWORD):表格行数
addr(DWORD):第一个表项的起始位置

表项
opcode(BYTE): Opcode
target_type(BYTE):#issue 2 type
source_type(BYTE)
encoded(BYTE): +rb/+rw/+rd位(0或1,表示是否需要偏移)
digit(BYTE): A digit between 0 and 7 indicates that the ModR/M byte of the instruction uses only the r/m (register or memory) operand. The reg field contains the digit that provides an extension to the instruction's opcode.

操作数的存储方式

操作数:
type(BYTE): 表明操作数类型
size(BYTE): 表明操作数位数(1/2/4)
addr(DWORD): 指向实际操作数详细信息的地址。

立即数:
value(DWORD):该立即数的值

寄存器:
reg(BYTE):高四位指该寄存器位数,低四位指该寄存器类型
(TBD)

直接寻址操作数:
value(DWORD):起始位置

间接寻址操作数([regA + x * regB + y]):
base(BYTE):寄存器A
index(BYTE):寄存器B
scale(BYTE):常数x(x = 0,1,2,4,8)
offset(DWORD):常数y

地址偏移量:
offset(DWORD):偏移量的值

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.