Skip to content

Add x86-64 instruction encoding tables to improve assembler maintainability #8

@v420v

Description

@v420v

Background

Currently, the x86-64 assembler implements instruction encoding through individual functions and hardcoded values. This approach makes the code harder to maintain and less efficient. Adding encoding tables would make the code more maintainable and potentially faster.

Proposed Solution

Create encoding tables that contain the necessary information for instruction encoding. The tables should include:

  1. Primary instruction table containing:
    • Instruction name (e.g., "MOV", "ADD")
    • Opcode variants (based on operand sizes)
    • Encoding type (register-to-register, immediate-to-register, etc.)
    • Required prefixes
    • Operand types and sizes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions