diff options
Diffstat (limited to 'hest-life.mu')
-rw-r--r-- | hest-life.mu | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/hest-life.mu b/hest-life.mu index 560a6f92..3d4d893e 100644 --- a/hest-life.mu +++ b/hest-life.mu @@ -659,17 +659,6 @@ fn edit keyboard: (addr keyboard), _self: (addr environment) { } } -fn linger _self: (addr environment) { - var self/esi: (addr environment) <- copy _self - var i/ecx: int <- copy 0 - { - compare i, 0x10000000 - break-if->= - i <- increment - loop - } -} - fn step _self: (addr environment) { var self/esi: (addr environment) <- copy _self var tick-a/ecx: (addr int) <- get self, tick @@ -1009,3 +998,14 @@ fn num-live-neighbors _self: (addr environment), x: int, y: int -> _/eax: int { } return result } + +fn linger _self: (addr environment) { + var self/esi: (addr environment) <- copy _self + var i/ecx: int <- copy 0 + { + compare i, 0x10000000 + break-if->= + i <- increment + loop + } +} |