summaryrefslogtreecommitdiff
path: root/js/IntegerOp/BITSET.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/IntegerOp/BITSET.js')
-rw-r--r--js/IntegerOp/BITSET.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js
index 920214d1..e6b8ea9b 100644
--- a/js/IntegerOp/BITSET.js
+++ b/js/IntegerOp/BITSET.js
@@ -3,7 +3,7 @@ function BITSET() {
BITSET.prototype.define = function BITSET() {
this.model = scicos_model();
this.model.sim = list(new ScilabString(["bit_set_32"]), new ScilabDouble([4]));
- this.model.in1 = new ScilabDouble([1]);
+ this.model.in = new ScilabDouble([1]);
this.model.in2 = new ScilabDouble([1]);
this.model.out = new ScilabDouble([1]);
this.model.out2 = new ScilabDouble([1]);
@@ -31,16 +31,13 @@ function BITSET() {
this.Datatype = arguments[0]["Datatype"]
this.bit = parseFloat(arguments[0]["bit"])
this.exprs = arguments[0]["exprs"]
- this.x = arg1;
- this.graphics = arg1.graphics;
this.exprs = this.graphics.exprs;
- this.model = arg1.model;
while (true) {
[ok,this.Datatype,this.bit,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","BITSET")],[" "],["Set a bit"],[" "]],[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),"Index of Bit (0 is least significant)"],list("vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
- var in1 = [this.model.in1,this.model.in2];
+ var in1 = [this.model.in,this.model.in2];
if (floor(this.bit)!=this.bit) {
block_parameter_error(msprintf("Wrong type for \'%s\' parameter: %5.1f.","Index of Bit",this.bit),"Must be integer.");
var ok = false;