From b08e6c40ec65fb386f19a54126fb18fa5412f2d1 Mon Sep 17 00:00:00 2001 From: slava Date: Fri, 24 Feb 2006 07:41:12 +0000 Subject: [PATCH] Fix bug with short operand words --- library/compiler/x86/assembler.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/compiler/x86/assembler.factor b/library/compiler/x86/assembler.factor index 94e11a7f23..eabc6d0897 100644 --- a/library/compiler/x86/assembler.factor +++ b/library/compiler/x86/assembler.factor @@ -206,7 +206,7 @@ UNION: operand register indirect ; : short-operand ( reg rex.w n -- ) #! Some instructions encode their single operand as part of #! the opcode. - >r dupd prefix-1 register r> + assemble-1 ; + >r dupd prefix-1 reg-code r> + assemble-1 ; : 1-operand ( op reg rex.w opcode -- ) #! The 'reg' is not really a register, but a value for the