From b506c5f239d413745875e564b3a34aa6f18f3a4e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 27 Feb 2019 22:23:11 -0800 Subject: 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. --- share/txr/stdlib/asm.tl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share') 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) -- cgit v1.2.3