home *** CD-ROM | disk | FTP | other *** search
-
- yaec1.4a - externs/externs.txt
-
- --------------------------------
-
- Globals that can be accessed by external code :
-
- ( access with name(a4) )
-
- GLOBAL_execbase OR _SysBase
- GLABAL_dosbase OR _DOSBase
- GLOBAL_graphicsbase OR _GfxBase
- GLOBAL_intuitionbase OR _IntuiBase
- GLOBAL_stdin OR _stdin
- GLOBAL_stdout OR _stdout
- GLOBAL_arg
- GLOBAL_mempool
- GLOBAL_stacksize
- GLOBAL_initialstack
- GLOBAL_exception
- GLOBAL_exceptioninfo
- GLOBAL_stdrast
-
- AND any globals that you define in your program :
-
- GLOBAL_<name>
-
-
- An external function looks like :
-
- EXT <fname> <#ofargs> ; comments
- <asm>
- ....
- ENDEXT
-
- <fname> must start with Uppercase A-Z.
-
- <asm> will be inserted directly (inline) into the program.
-
- Parameters are pushed (reverse order) on stack by YAEC.
- Get them with :
-
- move.l (a7)+, <something>
-
- OR (most usual)
-
- movem.l (a7)+, reglist
-
-
- If you are using any other regs then a0/a1/d0/d1/a6
- you must first save them.
-
-
- To link in external linklibs with your code :
-
- LINK <path/nameoflinklib>
-
- Put above at the top of the .ext file.
-
-
- Finally, this format of the .ext files may change
- anytime. especially on other platforms, but even
- between compiler versions is possible.
-
-
-