neděle 16. ledna 2011

Sorting with registers

Previous post was about sorting with no advanced functionality, which robot Emil also provides. I tried to rewrite it using memory registers and functionality for checking the height of stack of bricks in front of the robot. The result is terse and almost look like any procedural programming language. Take also a note to function CheckLength which returns value in special register called Counter (only register which can be used for function return value).

Bubble sort in Robot Emil which uses memory registers

Žádné komentáře:

Okomentovat