diff options
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, |
