On Tue, Jun 28, 2016 at 10:27 AM, Tony Harminc <[email protected]> wrote:
> On 27 June 2016 at 09:04, John McKown <[email protected]> > wrote: > > &NULL SETC BYTE(00) > > STRING DC 'HELPME&NULL' > > > > Not quite as pungent, but better. Does anybody have a better way? Should > I > > just make a macro, perhaps DCZ, to do the above for me automatically? > > > > This is more a technique question than a technical one. What would be > more > > understandable to most HLASM programmers? > > As an old assembler programmer I don't find this approach at all bad > or unintuitive. Where it will bite you down the road is when you start > putting your listings into UNIX files, and/or viewing them on Windows. > Something somewhere is going to choke on that zero byte. > An excellent point that I had completely forgotten about. Since I tend to be a heavy user of UNIX files for things, I will eventually get bitten. Reflecting. But will I really? The source should not actually contain an x'00' byte anywhere it in. Even after assembling, the &NULL will be in the listing not an actual x'00'. Or am I still off fighting zombies, orc, gobblins, et al. in my head? > > Tony H. > -- "Pessimism is a admirable quality in an engineer. Pessimistic people check their work three times, because they're sure that something won't be right. Optimistic people check once, trust in Solis-de to keep the ship safe, then blow everyone up." "I think you're mistaking the word optimistic for inept." "They've got a similar ring to my ear." >From "Star Nomad" by Lindsay Buroker: Maranatha! <>< John McKown
