From 985f7f79bee5481cc1247d1d68b1b2d47f5b500c Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 27 May 2020 00:01:12 -0700 Subject: [PATCH] 6408 --- html/mu_instructions.html | 3 ++- mu_instructions | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/html/mu_instructions.html b/html/mu_instructions.html index e619617a..82bfae86 100644 --- a/html/mu_instructions.html +++ b/html/mu_instructions.html @@ -189,7 +189,8 @@ be provided in an earlier 'var' declaration. var/reg: (addr T) <- address var2: T => "8d/copy-address *(ebp+" var2.stack-offset ") " reg "/r32" -Array operations (TODO: bounds-checking) +# Array operations +(TODO: bounds-checking) var/reg <- index arr/rega: (addr array T), idx/regi: int | if size-of(T) is 4 or 8 diff --git a/mu_instructions b/mu_instructions index 926438d7..a1e7fc68 100644 --- a/mu_instructions +++ b/mu_instructions @@ -164,7 +164,8 @@ be provided in an earlier 'var' declaration. var/reg: (addr T) <- address var2: T => "8d/copy-address *(ebp+" var2.stack-offset ") " reg "/r32" -# Array operations (TODO: bounds-checking) +# Array operations +(TODO: bounds-checking) var/reg <- index arr/rega: (addr array T), idx/regi: int | if size-of(T) is 4 or 8