diff options
| author | kitty <nepeta@canaglie.net> | 2026-02-25 00:35:54 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-02-25 00:35:54 +1100 |
| commit | 99b0d29d403a3f57db8760282be6acbb6c8fe532 (patch) | |
| tree | ba0e2ffea5d6a7c5eba7ba5c7ef80c975a725615 /jefs.fs | |
| parent | 8afcd437c0b2b02c255d83d87e63a88b240d27a1 (diff) | |
incomplete assembler displacement
Diffstat (limited to 'jefs.fs')
| -rw-r--r-- | jefs.fs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -66,6 +66,8 @@ variable modrm : rex.r rex @ 44 or rex ! ; : rex.x rex @ 42 or rex ! ; : rex.b rex @ 41 or rex ! ; +: rex, rex @ ?dup if c, then ; + \ REGISTERS {{{ : rax modrm @ 0 or modrm ! ; : rcx modrm @ 1 or modrm ! ; @@ -92,6 +94,12 @@ variable modrm : /4 modrm @ 20 or modrm ! ; : /5 modrm @ 28 or modrm ! ; : /6 modrm @ 30 or modrm ! ; : /7 modrm @ 38 or modrm ! ; +\ TODO store and write the displacement if given +: mod0 modrm @ 3f and modrm ! ; +: d) mod0 0<> if modrm @ 40 or modrm ! then ; \ disp8 or 0 only for now + +: mov, rex, 8b c, modrm @ c, asm$ ; + \ example idea: (from execute below) \ rex.w r11, r14 0 d) mov, \ rex.w r14, r14 8 d) lea, |
