[Info-vax] VMS process communication
Dave Froble
davef at tsoft-inc.com
Sat Mar 25 13:30:48 EDT 2023
On 3/25/2023 1:17 PM, bill wrote:
> On 3/25/2023 1:09 PM, Arne Vajhøj wrote:
>>
>>
>> $ type hw.mar
>> .title hw
>> .psect $CODE quad,pic,con,lcl,shr,exe,nowrt
>> hw: .asciz "Hello world!"
> ^^^^^^
>
>
>> .entry gethw,^m<>
>> movab hw,r0
>> ret
>> .end
>> $ macro hw
>>
>> hw: .asciz "Hello world!"
>> ^
>> %AMAC-E-DATINCODE, data in code stream
>> at line number 3 in file DISK2:[ARNE]hw.mar;1
>>
>> Of course they can do:
>>
>> $ type hw2.mar
>> .title hw2
>> .psect $PDATA quad,pic,con,lcl,shr,noexe,nowrt
>> hw: .asciz "Hello world!"
> ^^^^^^
>
>
>> .psect $CODE quad,pic,con,lcl,shr,exe,nowrt
>> .entry gethw,^m<>
>> movab hw,r0
>> ret
>> .end
>
> I thought null terminated strings was a C thing and a bad idea? :-)
>
> bill
>
There was ASCIZ before there was C. But still not advisable.
--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486
More information about the Info-vax
mailing list