aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-04-23 08:52:41 +0900
committerDevine Lu Linvega <[email protected]>2019-04-23 08:52:41 +0900
commit4c12523b285d603eabc827cf07b1653e66fff2ec (patch)
tree2f38d3db02c1560dee3640d4d75992a7937011eb
parenta9277da69109b4ddd04597c939e4c651805bf017 (diff)
downloadOrca-4c12523b285d603eabc827cf07b1653e66fff2ec.tar.gz
Orca-4c12523b285d603eabc827cf07b1653e66fff2ec.zip
This will break all older patch
-rw-r--r--desktop/core/library/a.js4
-rw-r--r--desktop/core/library/f.js4
-rw-r--r--desktop/core/library/i.js4
-rw-r--r--desktop/core/library/m.js4
-rw-r--r--desktop/core/library/r.js4
-rw-r--r--examples/benchmark.orca14
6 files changed, 17 insertions, 17 deletions
diff --git a/desktop/core/library/a.js b/desktop/core/library/a.js
index ed23246..6146cee 100644
--- a/desktop/core/library/a.js
+++ b/desktop/core/library/a.js
@@ -8,8 +8,8 @@ function OperatorA (orca, x, y, passive) {
this.name = 'add'
this.info = 'Outputs the sum of inputs.'
- this.ports.input.a = { x: 1, y: 0 }
- this.ports.input.b = { x: 2, y: 0 }
+ this.ports.input.a = { x: -1, y: 0 }
+ this.ports.input.b = { x: 1, y: 0 }
this.ports.output = { x: 0, y: 1 }
this.run = function () {
diff --git a/desktop/core/library/f.js b/desktop/core/library/f.js
index f9b3ae2..a474b93 100644
--- a/desktop/core/library/f.js
+++ b/desktop/core/library/f.js
@@ -8,8 +8,8 @@ function OperatorF (orca, x, y, passive) {
this.name = 'if'
this.info = 'Bangs if both inputs are equal.'
- this.ports.input.a = { x: 1, y: 0 }
- this.ports.input.b = { x: 2, y: 0 }
+ this.ports.input.a = { x: -1, y: 0 }
+ this.ports.input.b = { x: 1, y: 0 }
this.ports.output = { x: 0, y: 1 }
this.run = function () {
diff --git a/desktop/core/library/i.js b/desktop/core/library/i.js
index 7f6117a..1859a79 100644
--- a/desktop/core/library/i.js
+++ b/desktop/core/library/i.js
@@ -8,8 +8,8 @@ function OperatorI (orca, x, y, passive) {
this.name = 'increment'
this.info = 'Increments southward operator.'
- this.ports.input.min = { x: 1, y: 0 }
- this.ports.input.max = { x: 2, y: 0 }
+ this.ports.input.min = { x: -1, y: 0 }
+ this.ports.input.max = { x: 1, y: 0 }
this.ports.output = { x: 0, y: 1 }
this.run = function () {
diff --git a/desktop/core/library/m.js b/desktop/core/library/m.js
index 4b54a79..656ee2f 100644
--- a/desktop/core/library/m.js
+++ b/desktop/core/library/m.js
@@ -8,8 +8,8 @@ function OperatorM (orca, x, y, passive) {
this.name = 'modulo'
this.info = 'Outputs the modulo of input.'
- this.ports.input.val = { x: 1, y: 0 }
- this.ports.input.mod = { x: 2, y: 0 }
+ this.ports.input.val = { x: -1, y: 0 }
+ this.ports.input.mod = { x: 1, y: 0 }
this.ports.output = { x: 0, y: 1 }
this.run = function () {
diff --git a/desktop/core/library/r.js b/desktop/core/library/r.js
index 49e48e9..6e9b225 100644
--- a/desktop/core/library/r.js
+++ b/desktop/core/library/r.js
@@ -8,8 +8,8 @@ function OperatorR (orca, x, y, passive) {
this.name = 'random'
this.info = 'Outputs a random value.'
- this.ports.input.min = { x: 1, y: 0 }
- this.ports.input.max = { x: 2, y: 0 }
+ this.ports.input.min = { x: -1, y: 0 }
+ this.ports.input.max = { x: 1, y: 0 }
this.ports.output = { x: 0, y: 1 }
this.run = function () {
diff --git a/examples/benchmark.orca b/examples/benchmark.orca
index 11a24b7..d4bc9a4 100644
--- a/examples/benchmark.orca
+++ b/examples/benchmark.orca
@@ -2,16 +2,16 @@
.#.BENCHMARK.#...........................
.........................................
.8C8.............C8......................
-..38T012AGag.....68T012AGag..............
-..aVA............bVg.....................
+..38T012AGag.....08T012AGag..............
+..aVA............bV0.....................
.........................................
-..2Kab..2Kab..2Kab..2Kab..2Kab...........
-...AAg...FAg...IAg...MAg...RAg...........
-...q...........a.....a.....f.............
+.3Ka.b.3Ka.b.3Ka.b.3Ka.b.3Ka.b...........
+...AA0...AF0...AI0...AM0...AR0...........
+....A...........9.....0.....A............
.........................................
.3Ka.b.3Ka.b.............................
-...ACg...ADg.............................
-....c....................................
+...AC0...AD0.............................
+....0....................................
.........................................
.........................................
......................................... \ No newline at end of file