This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set _displaySize 80 | |
set i 0 | |
read value cell1 0 | |
jump 5 lessThan value min | |
jump 9 lessThanEq value max | |
op min min value min | |
op max max value max | |
op sub scaleY max min | |
op div scaleY _displaySize scaleY | |
op sub y2 value min |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getlink interface 0 | |
set i 0 | |
jump 22 greaterThanEq i 64 | |
read method interface i | |
op add p i 1 | |
read pos interface p | |
op div cellNum pos 64 | |
op floor cellNum cellNum 64 | |
op mul cellPos cellNum 64 | |
op sub cellPos pos cellPos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set _memSize 16 | |
set i 0 | |
jump 13 greaterThanEq i @links | |
getlink block i | |
sensor type block @type | |
jump 10 equal type @power-node | |
jump 10 equal type @power-node-large | |
jump 11 notEqual type @memory-cell | |
set cell block | |
jump 11 equal 1 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set _memSize 16 | |
set _displaySize 80 | |
op sub steps _memSize 1 | |
op div scaleX _displaySize steps | |
drawflush display1 | |
draw clear 0 0 0 255 0 0 | |
set i 0 | |
read value cell1 i | |
jump 10 lessThan value min | |
jump 16 lessThanEq value max |