diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-02-27 22:23:11 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-02-27 22:23:11 -0800 |
commit | d7a929d5bdf9a1cd3150a6cefa01a0c0ba6da4fb (patch) | |
tree | 1d1dfa511cff75cb3f72c6e62b0f48ab998808a6 | |
parent | 212094669a54fac1ca2d7023bda2588869b3d867 (diff) | |
download | txr-d7a929d5bdf9a1cd3150a6cefa01a0c0ba6da4fb.tar.gz txr-d7a929d5bdf9a1cd3150a6cefa01a0c0ba6da4fb.tar.bz2 txr-d7a929d5bdf9a1cd3150a6cefa01a0c0ba6da4fb.zip |
asm: getlx, setlx: disassembler bug.
* share/txr/stdlib/asm.tl (op-getlx dis, op-setlx dis): Decode
the small operand destination field correctly as such.
-rw-r--r-- | share/txr/stdlib/asm.tl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/txr/stdlib/asm.tl b/share/txr/stdlib/asm.tl index e9e4e9da..75d84471 100644 --- a/share/txr/stdlib/asm.tl +++ b/share/txr/stdlib/asm.tl @@ -765,7 +765,7 @@ (t asm.(put-insn me.code (enc-small-op 1) idx) asm.(asm-one ^(mov ,(operand-to-exp dst) t1)))))) (:method dis (me asm dst idx) - ^(,me.symbol ,(operand-to-sym dst) ,idx))) + ^(,me.symbol ,(small-op-to-sym dst) ,idx))) (defopcode op-setlx setlx auto (:method asm (me asm syntax) @@ -777,7 +777,7 @@ (t asm.(asm-one ^(mov t1 ,(operand-to-exp src))) asm.(put-insn me.code (enc-small-op 1) idx))))) (:method dis (me asm src idx) - ^(,me.symbol ,(operand-to-sym src) ,idx))) + ^(,me.symbol ,(small-op-to-sym src) ,idx))) (defopcode-derived op-getf getf auto op-getlx) |