Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!decwrl!ucbvax!apollo From: Pham@HI-MULTICS.ARPA Newsgroups: mod.computers.apollo Subject: Apollo's assembly. Message-ID: <851126172703.296216@HI-MULTICS.ARPA> Date: Tue, 26-Nov-85 12:27:00 EST Article-I.D.: HI-MULTI.851126172703.296216 Posted: Tue Nov 26 12:27:00 1985 Date-Received: Wed, 27-Nov-85 00:30:33 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 30 Approved: apollo@yale-comix.arpa Oops! Sorry . My previous message was filled by the sdm command. I would like to write an assembly subroutine which can access globol variables declared in C subroutine. Ex: /* This is a C subroutine */ long int L1, L2; C_sub() { extern int A_sub(); L1 = 1; A_sub(L1, L2); } * This is an Assembly subroutine module A_sub entry.p A_sub * How to declared external L1 & L2 ??? * A_sub clr.l d0 cmp.l L1,d0 beq.s done move.l #100,L2 done rts end A_sub Thank you for your help Minh Pham