z390development / z390

z390 Portable Mainframe Assembler and Emulator Project
GNU General Public License v2.0
39 stars 15 forks source link

RPI 1585: No warning for DC with P literal having invalid sign #161

Open adelosa opened 3 years ago

adelosa commented 3 years ago

Raised by Martin Truebner 2016/08/23 No warning for DC with P-type literal having sign in any position but the first. See mail by Martin Truebner dd 2016-08-23 08:38

z390org commented 3 years ago

Email by Martin Truebner:

Hello Abe, Hello Tom,

let me clarify the things-

... found some syntax errors

some is two

one case is this: 2153 L228 DC C'' ASMA068S Length error - ' ASMA435I Record 2058 in SYSIPT on volume:

which is IMHO a case that makes no sense anyway. Why would someone need a fields with fixed content of a length of 0.

I had a closer look at the generated code. This will create problems - if not now but at a later point. A length of 0 in an MVC (which is something some people code for an MVC which is subject to an EX) if not subject of an EX results in an move of one char....NOT GOOD

The generating program needs fixing


the other:

C37F156 DC P'00000-1' / Ln#- 272 258 / 0002025 ASMA074E Illegal syntax in expression - P'00000-1' ASMA104W Statement processing incomplete ** ASMA435I Record 2008 in SYSIPT on volume:

This is a flaw in z390 which apparently allows the sign anywhere instead of only in pos 1. But again- it needs fixing in the generating program.

The HLASM is at (PTF UK80713)

Martin