@@ -125,7 +125,7 @@ def addstr(cls, ins: Quad) -> list[str]:
125125 """Adds 2 string values. The result is pushed onto the stack.
126126 Note: This instruction does admit direct strings (as labels).
127127 """
128- ( tmp1 , tmp2 , output ) = cls .get_oper (ins [2 ], ins [3 ], no_exaf = True )
128+ tmp1 , tmp2 , output = cls .get_oper (ins [2 ], ins [3 ], no_exaf = True )
129129
130130 if tmp1 :
131131 output .append ("push hl" )
@@ -143,7 +143,7 @@ def ltstr(cls, ins: Quad) -> list[str]:
143143 """Compares & pops top 2 strings out of the stack.
144144 Temporal values are freed from memory. (a$ < b$)
145145 """
146- ( tmp1 , tmp2 , output ) = cls .get_oper (ins [2 ], ins [3 ])
146+ _ , _ , output = cls .get_oper (ins [2 ], ins [3 ])
147147 output .append (runtime_call (RuntimeLabels .STRLT ))
148148 output .append ("push af" )
149149 return output
@@ -153,7 +153,7 @@ def gtstr(cls, ins: Quad) -> list[str]:
153153 """Compares & pops top 2 strings out of the stack.
154154 Temporal values are freed from memory. (a$ > b$)
155155 """
156- ( tmp1 , tmp2 , output ) = cls .get_oper (ins [2 ], ins [3 ])
156+ _ , _ , output = cls .get_oper (ins [2 ], ins [3 ])
157157 output .append (runtime_call (RuntimeLabels .STRGT ))
158158 output .append ("push af" )
159159 return output
@@ -163,7 +163,7 @@ def lestr(cls, ins: Quad) -> list[str]:
163163 """Compares & pops top 2 strings out of the stack.
164164 Temporal values are freed from memory. (a$ <= b$)
165165 """
166- ( tmp1 , tmp2 , output ) = cls .get_oper (ins [2 ], ins [3 ])
166+ _ , _ , output = cls .get_oper (ins [2 ], ins [3 ])
167167 output .append (runtime_call (RuntimeLabels .STRLE ))
168168 output .append ("push af" )
169169 return output
@@ -173,7 +173,7 @@ def gestr(cls, ins: Quad) -> list[str]:
173173 """Compares & pops top 2 strings out of the stack.
174174 Temporal values are freed from memory. (a$ >= b$)
175175 """
176- ( tmp1 , tmp2 , output ) = cls .get_oper (ins [2 ], ins [3 ])
176+ _ , _ , output = cls .get_oper (ins [2 ], ins [3 ])
177177 output .append (runtime_call (RuntimeLabels .STRGE ))
178178 output .append ("push af" )
179179 return output
@@ -183,7 +183,7 @@ def eqstr(cls, ins: Quad) -> list[str]:
183183 """Compares & pops top 2 strings out of the stack.
184184 Temporal values are freed from memory. (a$ == b$)
185185 """
186- ( tmp1 , tmp2 , output ) = cls .get_oper (ins [2 ], ins [3 ])
186+ _ , _ , output = cls .get_oper (ins [2 ], ins [3 ])
187187 output .append (runtime_call (RuntimeLabels .STREQ ))
188188 output .append ("push af" )
189189 return output
@@ -193,15 +193,15 @@ def nestr(cls, ins: Quad) -> list[str]:
193193 """Compares & pops top 2 strings out of the stack.
194194 Temporal values are freed from memory. (a$ != b$)
195195 """
196- ( tmp1 , tmp2 , output ) = cls .get_oper (ins [2 ], ins [3 ])
196+ _ , _ , output = cls .get_oper (ins [2 ], ins [3 ])
197197 output .append (runtime_call (RuntimeLabels .STRNE ))
198198 output .append ("push af" )
199199 return output
200200
201201 @classmethod
202202 def lenstr (cls , ins : Quad ) -> list [str ]:
203203 """Returns string length"""
204- ( tmp1 , output ) = cls .get_oper (ins [2 ], no_exaf = True )
204+ tmp1 , output = cls .get_oper (ins [2 ], no_exaf = True )
205205 if tmp1 :
206206 output .append ("push hl" )
207207
@@ -243,7 +243,7 @@ def storestr(cls, ins: Quad) -> list[str]:
243243 if not indirect :
244244 op1 = "#" + op1
245245
246- tmp1 , tmp2 , output = cls .get_oper (op1 , ins [2 ], no_exaf = True )
246+ _ , tmp2 , output = cls .get_oper (op1 , ins [2 ], no_exaf = True )
247247
248248 if not tmp2 :
249249 output .append (runtime_call (RuntimeLabel .STORE_STR ))
@@ -326,7 +326,7 @@ def paramstr(cls, ins: Quad) -> list[str]:
326326 to a string. For indirect values, it will push
327327 the pointer to the pointer :-)
328328 """
329- ( tmp , output ) = cls .get_oper (ins [1 ])
329+ tmp , output = cls .get_oper (ins [1 ])
330330 output .pop () # Remove a register flag (useless here)
331331 tmp = ins [1 ][0 ] in ("#" , "_" ) # Determine if the string must be duplicated
332332
@@ -343,6 +343,6 @@ def fparamstr(cls, ins: Quad) -> list[str]:
343343 value, or by loading it from memory (indirect)
344344 or directly (immediate) --prefixed with '#'--
345345 """
346- ( tmp1 , output ) = cls .get_oper (ins [1 ])
346+ _ , output = cls .get_oper (ins [1 ])
347347
348348 return output
0 commit comments