TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Dave Philipsen 73627,710 (X)
from: Mark Wuest 74030,332
date: 1991-10-15 08:31:53
subject: #12618-C language

#: 12619 S12/OS9/68000 (OSK)
    15-Oct-91  08:31:53
Sb: #12618-C language
Fm: Mark Wuest 74030,332
To: Dave Philipsen 73627,710 (X)

Dave,
 Function calls in Microware C under OSK have a very predictable method of
passing arguments. The first two arguments will always be in d0 and d1. The
rest are on the stack in order. For simplicity, I would strongly recommend only
passing two arguments to a function in which you wish to have imbedded
assembly.
 Another technique you might try is to not pass arguments and set some globals
to the values needed. Then you can access them directly and in a
selfdocumenting manner: arg1(a6), arg2(a6), etc.
 Whatever floats your boat!
 Mark

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.