Samples

Here are some sample programs so far implemented in Revomer.

Hi universe

This is the first Revomer program that was ever run. It took place on 1 September at 10.04 AM. The program prints "HI UNIVERSE" on the screen.

almukantarat~
nope~
null%
almukantarat~
come here $1, $1, $3
gifs 3~
hide $3
gifs 29~
hide $2
gifs 29~
hide $1
pos $0~
gifs 69~
pos $0~
gifs 83~
pos $0~
gifs 82~
pos $0~
gifs 69~
pos $0~
gifs 86~
pos $0~
gifs 73~
pos $0~
gifs 78~
pos $0~
gifs 85~
pos $0~
gifs 32~
pos $0~
gifs 73~
pos $0~
gifs 72~
hide $0
%

Random letters

The program prints a random letter from A to J.

almukantarat~
nope~
null%
almukantarat~
come here $2, $2, $4
gifs 3~
hide $4
gifs 21~
hide $2
pos $0~
gifs 74~
gifs 73~
gifs 72~
gifs 71~
gifs 70~
gifs 69~
gifs 68~
gifs 67~
gifs 66~
gifs 65~
shuffle $1, $2
hide $0
gifs 1~
hide $1
gifs 11~
hide $2
%

Multiplication

Revomer can't multiply itself - this operation must be implemented by the programmer. The program below does it on two numbers specified in the $500 and $501 memory cells. This version works on 8-bit words, so the maximum result is 256. We have another version, which allows to get the results up to 32768.

Note this program is a bit tricky, because it uses the illegal command num to print numbers, which is not a part of the language specification. Simply, to implement the number printing, we need multiply and to implement multiply we need to test somehow, whether it works :).

almukantarat~
mul_null%
almukantarat~
conf mul_null, n~
unless}$506#
????& $506, $507
in $507
in $506
@&%^" $508, $506
conf n, mul_null~
@&%^" $501, $508
@&%^" $501, $507
gifs 1~
hide $508
gifs 1~
hide $507
gifs 1~
hide $506
~].?&* $505, $503~
~].?&* $503, $504~
@&%^" $504, $503
~].?&* $503, $505~
~].?&* $505, $502~
~].?&* $502, $501~
@&%^" $501, $502
~].?&* $502, $505~
n%
almukantarat~
nope~
nope~
nope~
nope~
foo%
almukantarat~
come here $520, $521, $522
gifs 3~
hide $522
gifs 17~
hide $521
gifs 17~
hide $520
charm $66
gifs 110~
hide $66
gifs 0~
hide $504
@&%^" $509, $503
~].?&* $500, $503~
gifs 1~
hide $502
gifs 0~
hide $509
m%
almukantarat~
come here $500, $501, $502
gifs 3~
hide $502
gifs 14~
hide $501
gifs 14~
hide $500
num $504
charm $66
gifs 109~
hide $66
gifs 8~
hide $501
gifs 8~
hide $500
%
© Tomasz "Zyx" Jędrzejewski 2005 - 2008 | Wykonanych zapytań: 0 | Serwer wirtualny zapewnia