diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-06 09:44:03 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-06 09:44:03 -0400 |
| commit | 7add85856a927766f218789aa946641228650c02 (patch) | |
| tree | 24de2f1aebf4435e3bef264b9110816cb0e6fa29 /docs/lifecycle/jit.md | |
| parent | 482f005ff4a76ec69851e16ab8b332232e9befaa (diff) | |
Diffstat (limited to 'docs/lifecycle/jit.md')
| -rw-r--r-- | docs/lifecycle/jit.md | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/lifecycle/jit.md b/docs/lifecycle/jit.md index 5515f55..3243385 100644 --- a/docs/lifecycle/jit.md +++ b/docs/lifecycle/jit.md @@ -1,3 +1,55 @@ # Jit --- + +Convert Ir Into X64 (X86_64) + +## Limitations + +#### No Segmentation Registers + +#### No X87 Support + +#### No access to the upper 8 bits of the lower 16 bits of registers AX, BX, CX, DX + +## Required Implicit Registers + +Instructions that implicitly modify a register now require the register as an operation + +# Operation + +Each instruction is written with varardic c functions with `TYPE`, `DATA` syntax + +## TYPE + +### General Registers Width + +### General Register Addresses Width + +### General Register Scale + +### General Register Id + +### General Register Memory Displacement + +### XMM Registers + +### MM Registers + +### Immediate Value + +### Relative Address + +### Label + +## DATA + +## Object Definitions + +```c +kpl_x64_lable(label) + +kpl_x64_inst(INSTRUCTION, [TYPE, VALUE]..., END) + +kpl_x64_inst_pfx(PREFIX, INSTRUCTION, [TYPE, VALUE]..., END) +``` |
