diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-11-01 22:02:13 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-11-01 22:02:13 -0800 |
commit | 17623a628aee2429a5a8d8b65bd84235f6be0e3f (patch) | |
tree | 373ac0b29678e96d24faf1cb8d8c853ca6b06279 /apps/ex3.2.mu | |
parent | cc7dcdc3b8bb6c133ecdbc97d1c134d30f1500f5 (diff) | |
download | mu-17623a628aee2429a5a8d8b65bd84235f6be0e3f.tar.gz |
7154
Diffstat (limited to 'apps/ex3.2.mu')
-rw-r--r-- | apps/ex3.2.mu | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/ex3.2.mu b/apps/ex3.2.mu index dc97bf7a..d06928fe 100644 --- a/apps/ex3.2.mu +++ b/apps/ex3.2.mu @@ -6,7 +6,7 @@ # $ echo $? # 55 -fn main -> result/ebx: int { +fn main -> _/ebx: int { # populate a var a: (array int 0xb) # 11; we waste index 0 var i/ecx: int <- copy 1 @@ -19,7 +19,7 @@ fn main -> result/ebx: int { loop } # sum - result <- copy 0 + var result/edx: int <- copy 0 i <- copy 1 { compare i, 0xb @@ -29,4 +29,5 @@ fn main -> result/ebx: int { i <- increment loop } + return result } |