repo.or.cz
/
mu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix other mandelbrot variants
[mu.git]
/
tutorial
/
task15.mu
blob
9aead07fcf539abf325afe52ad5c835a44def329
1
fn main screen: (addr screen) {
2
var y/eax: int <- copy 0
3
{
4
compare y, 0x300/screen-height=768
5
break-if->=
6
var x/edx: int <- copy 0
7
{
8
compare x, 0x400/screen-width=1024
9
break-if->=
10
var color/ecx: int <- copy x
11
pixel screen x, y, color
12
x <- increment
13
loop
14
}
15
y <- increment
16
loop
17
}
18
}