From ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 2 Jul 2018 22:51:03 +0530 Subject: add options block --- js/IntegerOp/SHIFT.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/IntegerOp/SHIFT.js') diff --git a/js/IntegerOp/SHIFT.js b/js/IntegerOp/SHIFT.js index 1006fe5f..6312368d 100644 --- a/js/IntegerOp/SHIFT.js +++ b/js/IntegerOp/SHIFT.js @@ -24,6 +24,12 @@ function SHIFT() { return this.x; } SHIFT.prototype.get = function SHIFT() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + nb:["Number of Bits to Shift Left (Negative number to shift right)",this.nb], + np:["Shift Type (0:Arithmetic, 1:Circular)",this.np], + } + return options; } SHIFT.prototype.set = function SHIFT() { this.Datatype = parseFloat((arguments[0]["Datatype"])) -- cgit