[Info-vax] VMS process communication
Arne Vajhøj
arne at vajhoej.dk
Sat Mar 25 14:07:39 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? :-)
Well - it is being returned to a C program, so it made sense to me.
Arne
More information about the Info-vax
mailing list