diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-07-14 21:42:20 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-07-14 21:42:20 -0700 |
commit | ab26c894c889047305ad376ec644f32abe545cd2 (patch) | |
tree | 363dd7e06f65130c6258d9b45f2afeb9305468bf /mu_instructions | |
parent | 42b0c1139c339c249e494219bc448d1ddd32438b (diff) | |
download | mu-ab26c894c889047305ad376ec644f32abe545cd2.tar.gz |
6648 - bit-shift instructions in Mu
I'm not happy with the names.
Diffstat (limited to 'mu_instructions')
-rw-r--r-- | mu_instructions | 7 |
1 files changed, 7 insertions, 0 deletions
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" |