IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
49 stars 20 forks source link

ROTATE THEN AND SELECTED BITS number of operands #418

Closed Dylan-hub-bit closed 3 months ago

Dylan-hub-bit commented 3 months ago

Development environment used

The ROTATE THEN AND SELECTED BITS instruction is reporting an error expecting 5 operands, but it shouldn't because the 5th operand is optional.

Detailed steps for reproducing the problem:

Open a HLASM module with the following instruction: RNSBGT &R,&R,34,63
and in the Problems window it reports the following: "Unexpected number of operands. Expected 5 but found 4"

[{ "resource": "/c:/Users/me/git/myrepo/blah.asm", "owner": "_generated_diagnostic_collectionname#4", "code": "-6", "severity": 8, "message": "Unexpected number of operands. Expected 5 but found 4", "startLineNumber": 415, "startColumn": 10, "endLineNumber": 415, "endColumn": 16 }]

The Principles of Operations has: ROTATE THEN AND SELECTED BITS RNSBG R1,R2,I3,I4[,I5] [RIE-f] ROTATE THEN EXCLUSIVE OR SELECTED BITS RXSBG R1,R2,I3,I4[,I5] [RIE-f] ROTATE THEN OR SELECTED BITS ROSBG R1,R2,I3,I4[,I5] [RIE-f]

sdaimwood commented 3 months ago

This bug was fixed in version 4.3.0. Thank you for reporting the problem.

The error messages should be more concise and helpful when optional operands are present.