Language::Befunge::lib::ORTH - Orthogonal easement extension
version 5.000
The ORTH fingerprint (0x4f525448) is designed to ease transition between the Orthogonal programming language and Befunge-98 (or higher dimension Funges).
Even if transition from Orthogonal is not an issue, the ORTH library contains some potentially interesting instructions not in standard Funge-98.
Create a new ORTH instance.
Push back $a & $b (bitwise AND).
$a & $b
Push back $a | $b (bitwise OR).
$a | $b
Push back $a ^ $b (bitwise XOR).
$a ^ $b
Push back value stored at coords ($x, $y). Note that Befunge get is g($x,$y) (ie, the arguments are reversed).
g($x,$y)
Store value $v at coords ($x, $y). Note that Befunge put is p($v,$x,$y) (ie, the coordinates are reversed).
$v
p($v,$x,$y)
Print popped 0gnirts on STDOUT.
Change X coordinate of IP to $x.
$x
Change Y coordinate of IP to $y.
$y
Change X coordinate of IP velocity to $dx.
$dx
Change Y coordinate of IP velocity to $dy.
$dy
Test the top stack element, and if zero, skip over the next cell (i.e., add the delta twice to the current position).
http://catseye.tc/projects/funge98/library/ORTH.html, http://www.muppetlabs.com/~breadbox/orth/orth.html.
Jerome Quelin
This software is copyright (c) 2003 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Language::Befunge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Language::Befunge
CPAN shell
perl -MCPAN -e shell install Language::Befunge
For more information on module installation, please visit the detailed CPAN module installation guide.