Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site cmu-cs-k.ARPA Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!seismo!rochester!cmu-cs-pt!cmu-cs-k!dtw From: dtw@cmu-cs-k.ARPA (Duane Williams) Newsgroups: net.micro.mac Subject: Re: Setting modem baud rate from MacPascal Message-ID: <359@cmu-cs-k.ARPA> Date: Sun, 31-Mar-85 05:33:01 EST Article-I.D.: cmu-cs-k.359 Posted: Sun Mar 31 05:33:01 1985 Date-Received: Tue, 2-Apr-85 22:08:33 EST References: <2795@dartvax.UUCP> <2831@dartvax.UUCP>, <2877@dartvax.UUCP> Organization: Carnegie-Mellon University, CS/RI Lines: 29 There is an article on the use of Pascal's Generic procedure in the latest (April) issue of MacTutor. It explains in detail how to set up the parameters to the routine and gives as an example a routine which changes the modem port communication parameters. According to the article, Generic is in effect pre-declared as follows: procedure Generic (InstructionWord:integer; VAR Registers:RegRcd); RegRcd is a structure with 13 32-bit values: var Registers:record A0,A1,A2,A3,A4:^char; D0,D1,D2,D3,D4,D5,D6,D7:longint end; The register values are loaded into the 68K registers before the one-word instruction is executed. The Register structure is updated with the values from the 68K registers before Generic returns to your program. For further information, consult the article. MacTutor is obtainable from: MacTutor P. O. Box 846 Placentia, CA 92670 ($24/year, in the U.S.) -- uucp: ..!seismo!cmu-cs-k!dtw arpa: dtw@cmu-cs-k.ARPA