# HG changeset patch # User roug # Date 1036101932 0 # Node ID e1be1b6100767a95defb91fd59c9adbd2cb87055 # Parent c7dda4211c00fb408528ffc762f51c9f9305219b Several functions ready. diff -r c7dda4211c00 -r e1be1b610076 docs/ccguide/asm.appendix --- a/docs/ccguide/asm.appendix Thu Oct 31 16:35:25 2002 +0000 +++ b/docs/ccguide/asm.appendix Thu Oct 31 22:05:32 2002 +0000 @@ -87,7 +87,53 @@
PSECT Directive +The main difference between PSECT and MOD is that MOD sets up +information for OS-9 and PSECT sets up information for the +linker (c.link in the C compiler). + + +PSECT {name,typelang,attrrev,edition,stacksize,entrypoint} + + + + + + +name +Up to 20 bytes (any printable character except space +or comma) for a name to be used by the linker to +identify this PSECT. This name need not be distinct +from all other PSECTs linked together, but it helps +to identify PSECTs the linker has a problem with if +the names are different. + + +typelang + + + +attrrev + + + +edition + + + +stacksize + + + +entrypoint +word expression entrypoint offset for this PSECT. +If the PSECT is not a mainline odule, this should +be set to zero. + + + + +
@@ -175,8 +221,42 @@
Additional Pseudo-Instructions + +\n + +will return the number of arguments passed to the macro. + + + +\L<num> + + +will return the length of the ith argument +that is specified by <num>. + + + + +FAIL + + +Causes an error to be generated. + + + + +REPT <num> + + +will repeat an instruction or group of instructions <num> times. +ENDR terminates REPT. + + + + +