From 563ecbd871f72efa4c72f728755baf8119d128db Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Wed, 23 Sep 2009 19:30:36 -0500 Subject: [PATCH] cpu.x86.assembler: cleanup --- basis/cpu/x86/assembler/assembler.factor | 8 ++++++++ basis/cpu/x86/assembler/operands/authors.txt | 2 ++ basis/cpu/x86/assembler/operands/summary.txt | 1 + 3 files changed, 11 insertions(+) create mode 100644 basis/cpu/x86/assembler/operands/authors.txt create mode 100644 basis/cpu/x86/assembler/operands/summary.txt diff --git a/basis/cpu/x86/assembler/assembler.factor b/basis/cpu/x86/assembler/assembler.factor index ead1c8a695..3cb41fd544 100644 --- a/basis/cpu/x86/assembler/assembler.factor +++ b/basis/cpu/x86/assembler/assembler.factor @@ -198,12 +198,16 @@ M: register POP f HEX: 58 short-operand ; M: operand POP { BIN: 000 f HEX: 8f } 1-operand ; ! MOV where the src is immediate. + + GENERIC: MOV ( dst src -- ) M: immediate MOV swap (MOV-I) ; M: operand MOV HEX: 88 2-operand ; @@ -296,6 +300,8 @@ M: operand TEST OCT: 204 2-operand ; : CDQ ( -- ) HEX: 99 , ; : CQO ( -- ) HEX: 48 , CDQ ; + + : ROL ( dst n -- ) BIN: 000 (SHIFT) ; : ROR ( dst n -- ) BIN: 001 (SHIFT) ; : RCL ( dst n -- ) BIN: 010 (SHIFT) ; diff --git a/basis/cpu/x86/assembler/operands/authors.txt b/basis/cpu/x86/assembler/operands/authors.txt new file mode 100644 index 0000000000..580f882c8d --- /dev/null +++ b/basis/cpu/x86/assembler/operands/authors.txt @@ -0,0 +1,2 @@ +Slava Pestov +Joe Groff diff --git a/basis/cpu/x86/assembler/operands/summary.txt b/basis/cpu/x86/assembler/operands/summary.txt new file mode 100644 index 0000000000..474b715848 --- /dev/null +++ b/basis/cpu/x86/assembler/operands/summary.txt @@ -0,0 +1 @@ +x86 registers and memory operands