diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-02-10 00:47:44 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-02-14 01:44:07 -0800 |
commit | 0be8e8007299be1eaaf778e3539b2eafcb637c8b (patch) | |
tree | 82f15bcc01aa267ac5ba695e6cae648fbda3c4fe | |
parent | 6a28260f199f3676b911ce0dc422d39f415b2bec (diff) | |
download | mu-0be8e8007299be1eaaf778e3539b2eafcb637c8b.tar.gz |
6004
-rw-r--r-- | apps/ex3.mu | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/ex3.mu b/apps/ex3.mu new file mode 100644 index 00000000..aaef1175 --- /dev/null +++ b/apps/ex3.mu @@ -0,0 +1,11 @@ +fn main -> result/ebx: int { + result <- copy 0 + var i/eax: int <- copy 1 + { + compare i, 0xa + break-if-> + result <- add i + i <- increment + loop + } +} |