Thread View: mod.computers.apollo
1 messages
1 total messages
Started by Pham
Tue, 26 Nov 1985 17:27
Apollo's assembly.
Author: Pham
Date: Tue, 26 Nov 1985 17:27
Date: Tue, 26 Nov 1985 17:27
30 lines
1188 bytes
1188 bytes
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
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