[Info-vax] VMS process communication
bill
bill.gunshannon at gmail.com
Sat Mar 25 13:17:46 EDT 2023
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
More information about the Info-vax
mailing list