about summary refs log tree commit diff stats
path: root/mu.md
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-03 22:53:05 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-03 22:53:05 -0700
commitb6cf4f1db3afe407220613ba76685058b0e2aa09 (patch)
treef9856cf88a562f3b7a6b6d654542b6b87e35ad17 /mu.md
parent93a4ada6a1d1424ef1a6e0f7a7c6d55866b768af (diff)
downloadmu-b6cf4f1db3afe407220613ba76685058b0e2aa09.tar.gz
6939
Diffstat (limited to 'mu.md')
-rw-r--r--mu.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/mu.md b/mu.md
index a3271631..6892df9d 100644
--- a/mu.md
+++ b/mu.md
@@ -258,6 +258,7 @@ var/xreg <- min *var2/reg2
 var/xreg <- max var2/xreg2
 var/xreg <- max var2
 var/xreg <- max *var2/reg2
+```
 
 Remember, when these instructions use indirect mode, they still use an integer
 register. Floating-point registers can't hold addresses.
@@ -266,6 +267,7 @@ Most instructions operate exclusively on integer or floating-point operands.
 The only exceptions are the instructions for converting between integers and
 floating-point numbers.
 
+```
 var/xreg <- convert var2/reg2
 var/xreg <- convert var2
 var/xreg <- convert *var2/reg2
@@ -273,6 +275,7 @@ var/xreg <- convert *var2/reg2
 var/reg <- convert var2/xreg2
 var/reg <- convert var2
 var/reg <- convert *var2/reg2
+```
 
 There are no instructions accepting floating-point literals. To obtain integer
 literals in floating-point registers, copy them to general-purpose registers
@@ -282,13 +285,16 @@ One pattern you may have noticed above is that the floating-point instructions
 above always write to registers. The only exceptions are `copy` instructions,
 which can write to memory locations.
 
+```
 var/xreg <- copy var2/xreg2
 copy-to var1, var2/xreg
 var/xreg <- copy var2
 var/xreg <- copy *var2/reg2
+```
 
 Floating-point comparisons always put a register on the left-hand side:
 
+```
 compare var1/xreg1, var2/xreg2
 compare var1/xreg1, var2
 ```