@@ -48,6 +48,7 @@ export const mapInstructionsArgsByType = (
48
48
valueFormatted ?: string | number ;
49
49
argumentBitLength ?: number ;
50
50
hidden ?: boolean ;
51
+ hiddenFromDetails ?: boolean ;
51
52
} [ ]
52
53
| null => {
53
54
if ( ! args ) return null ;
@@ -84,11 +85,15 @@ export const mapInstructionsArgsByType = (
84
85
argumentBitLength : bitLengths ?. firstImmediateLengthBits ,
85
86
hidden : true ,
86
87
} ,
87
- {
88
- type : argType . IMMEDIATE ,
89
- value : valueToNumeralSystem ( args ?. firstImmediateDecoder . getI64 ( ) , numeralSystem ) ,
90
- argumentBitLength : bitLengths ?. firstImmediateDecoderBits ,
91
- } ,
88
+ ...( bitLengths ?. firstImmediateLength
89
+ ? [
90
+ {
91
+ type : argType . IMMEDIATE ,
92
+ value : valueToNumeralSystem ( args ?. firstImmediateDecoder . getI64 ( ) , numeralSystem ) ,
93
+ argumentBitLength : bitLengths ?. firstImmediateDecoderBits ,
94
+ } ,
95
+ ]
96
+ : [ ] ) ,
92
97
{
93
98
type : argType . IMMEDIATE ,
94
99
value : valueToNumeralSystem ( args ?. secondImmediateDecoder . getI64 ( ) , numeralSystem ) ,
@@ -131,11 +136,15 @@ export const mapInstructionsArgsByType = (
131
136
argumentBitLength : bitLengths ?. firstImmediateLengthBits ,
132
137
hidden : true ,
133
138
} ,
134
- {
135
- type : argType . IMMEDIATE ,
136
- value : valueToNumeralSystem ( args ?. firstImmediateDecoder . getI64 ( ) , numeralSystem ) ,
137
- argumentBitLength : bitLengths ?. firstImmediateDecoderBits ,
138
- } ,
139
+ ...( bitLengths ?. firstImmediateLength
140
+ ? [
141
+ {
142
+ type : argType . IMMEDIATE ,
143
+ value : valueToNumeralSystem ( args ?. firstImmediateDecoder . getI64 ( ) , numeralSystem ) ,
144
+ argumentBitLength : bitLengths ?. firstImmediateDecoderBits ,
145
+ } ,
146
+ ]
147
+ : [ ] ) ,
139
148
{
140
149
type : argType . IMMEDIATE ,
141
150
value : valueToNumeralSystem ( args ?. secondImmediateDecoder . getI64 ( ) , numeralSystem ) ,
@@ -156,11 +165,15 @@ export const mapInstructionsArgsByType = (
156
165
argumentBitLength : bitLengths ?. firstImmediateLengthBits ,
157
166
hidden : true ,
158
167
} ,
159
- {
160
- type : argType . IMMEDIATE ,
161
- value : valueToNumeralSystem ( args ?. immediateDecoder . getI64 ( ) , numeralSystem ) ,
162
- argumentBitLength : bitLengths ?. immediateDecoderBits ,
163
- } ,
168
+ ...( bitLengths ?. firstImmediateLength
169
+ ? [
170
+ {
171
+ type : argType . IMMEDIATE ,
172
+ value : valueToNumeralSystem ( args ?. immediateDecoder . getI64 ( ) , numeralSystem ) ,
173
+ argumentBitLength : bitLengths ?. immediateDecoderBits ,
174
+ } ,
175
+ ]
176
+ : [ ] ) ,
164
177
{
165
178
type : argType . OFFSET ,
166
179
value : valueToNumeralSystem ( args ?. nextPc - counter , numeralSystem ) ,
@@ -256,11 +269,15 @@ export const mapInstructionsArgsByType = (
256
269
argumentBitLength : bitLengths ?. firstImmediateLengthBits ,
257
270
hidden : true ,
258
271
} ,
259
- {
260
- type : argType . IMMEDIATE ,
261
- value : valueToNumeralSystem ( args ?. firstImmediateDecoder . getI64 ( ) , numeralSystem ) ,
262
- argumentBitLength : bitLengths ?. firstImmediateDecoderBits ,
263
- } ,
272
+ ...( bitLengths ?. firstImmediateLength
273
+ ? [
274
+ {
275
+ type : argType . IMMEDIATE ,
276
+ value : valueToNumeralSystem ( args ?. firstImmediateDecoder . getI64 ( ) , numeralSystem ) ,
277
+ argumentBitLength : bitLengths ?. firstImmediateDecoderBits ,
278
+ } ,
279
+ ]
280
+ : [ ] ) ,
264
281
{
265
282
type : argType . IMMEDIATE ,
266
283
value : valueToNumeralSystem ( args ?. secondImmediateDecoder . getI64 ( ) , numeralSystem ) ,
0 commit comments