about summary refs log tree commit diff stats
path: root/mu_instructions
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-29 08:43:00 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-29 08:45:25 -0800
commit4a280280cd6c0d24c4719727b86ed86aef1d74f2 (patch)
tree1d8f2913dddb6c1aece993de984968b75981819d /mu_instructions
parenta518d84bf43375558fc42508347e5f604887e526 (diff)
downloadmu-4a280280cd6c0d24c4719727b86ed86aef1d74f2.tar.gz
7296 - rough support for printing floats
No rounding yet, and we have a blunt way to decide when to start truncating.
Diffstat (limited to 'mu_instructions')
-rw-r--r--mu_instructions1
1 files changed, 1 insertions, 0 deletions
diff --git a/mu_instructions b/mu_instructions
index 7c3d8d6c..a5336070 100644
--- a/mu_instructions
+++ b/mu_instructions
@@ -130,6 +130,7 @@ compare var, n                    => "81 7/subop/compare *(ebp+" var.stack-offse
 compare *var/reg, n               => "81 7/subop/compare *" reg " " n "/imm32"
 
 var/reg <- multiply var2          => "0f af/multiply *(ebp+" var2.stack-offset ") " reg "/r32"
+var/reg <- multiply var2/reg2     => "0f af/multiply %" reg2 " " reg "/r32"
 var/reg <- multiply *var2/reg2    => "0f af/multiply *" reg2 " " reg "/r32"
 
 ## Floating-point operations