Article View: mod.computers.apollo
Article #5Apollo's assembly.
From: Pham
Date: Mon, 25 Nov 1985 20:06
Date: Mon, 25 Nov 1985 20:06
20 lines
1129 bytes
1129 bytes
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
Technical Details
Message-ID:
<851125200650.860109@HI-MULTICS.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!cbosgd!ucbvax!apolloShow Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!cbosgd!ucbvax!apollo From: Pham@HI-MULTICS.ARPA Newsgroups: mod.computers.apollo Subject: Apollo's assembly. Message-ID: <851125200650.860109@HI-MULTICS.ARPA> Date: Mon, 25-Nov-85 15:06:00 EST Article-I.D.: HI-MULTI.851125200650.860109 Posted: Mon Nov 25 15:06:00 1985 Date-Received: Tue, 26-Nov-85 20:50:53 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 20 Approved: apollo@yale-comix.arpa