🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: mod.computers.apollo
1 messages
1 total messages Started by Pham Mon, 25 Nov 1985 20:06
Apollo's assembly.
#5
Author: Pham
Date: Mon, 25 Nov 1985 20:06
20 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads