Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!rutgers!pyrnj!pyrdc!uunet!mcvax!cernvax!ethz!pasche
From: pasche@ethz.UUCP (Stephan Pasche)
Newsgroups: comp.os.os9
Subject: Re: Shared Data Modules
Keywords: OS-9, Shared Data, RMA
Message-ID: <625@ethz.UUCP>
Date: 23 Sep 88 10:10:10 GMT
References: <707@cseg.uucp>
Reply-To: pasche@bernina.UUCP (Stephan Paschedag)
Organization: ETH Zuerich, Switzerland
Lines: 35

It is quite easy to create data modules using OS-9's r68/l68.
Here is an example :


Edition equ 1          current edition number

 use /r0/defs/oskdefs.d

Typ_Lang set (Data<<8)
Attr_Rev set (ReEnt<<8)

 psect data_module,Typ_Lang,Attr_Rev,Edition,0,Entry

Entry: dc.b "This is a data module"
 dc.b "          "
 dc.l $01234567,$89abcdef

 ends


You can assemble this file like a normal assemble file :

r68 data.a -o=data.r
l68 data.r -O=data

I hope this will help you

Stephan

==============================================================================
OS/2 & PS/2 : half an operating system for half a computer

Stephan Paschedag           pachedag@strati.ethz.ch  or  pasche@ifi.ethz.ch
Federal Institute Of Technologie Zurich
______________________________________________________________________________