From ab26c894c889047305ad376ec644f32abe545cd2 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 14 Jul 2020 21:42:20 -0700 Subject: 6648 - bit-shift instructions in Mu I'm not happy with the names. --- mu_instructions | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mu_instructions') diff --git a/mu_instructions b/mu_instructions index c23606ec..69999444 100644 --- a/mu_instructions +++ b/mu_instructions @@ -76,6 +76,13 @@ var/reg <- xor n => "81 6/subop/xor %" reg " " n "/imm32" xor-with var, n => "81 6/subop/xor *(ebp+" var.stack-offset ") " n "/imm32" xor-with *var/reg, n => "81 6/subop/xor *" reg " " n "/imm32" +var/reg <- shift-left n +var/reg <- shift-right n +var/reg <- shift-right-signed n +shift-left var, n +shift-right var, n +shift-right-signed var, n + var/eax <- copy n => "b8/copy-to-eax " n "/imm32" var/ecx <- copy n => "b9/copy-to-ecx " n "/imm32" var/edx <- copy n => "ba/copy-to-edx " n "/imm32" -- cgit 1.4.1-2-gfad0