diff --git a/Makefile.OS4 b/Makefile.OS4 index 047f732..b4bec72 100644 --- a/Makefile.OS4 +++ b/Makefile.OS4 @@ -7,7 +7,7 @@ OUTFMTS = -DOUTAOUT -DOUTBIN -DOUTELF -DOUTHUNK -DOUTSREC -DOUTTOS -DOUTVOBJ \ CC = vc +aosppc CCOUT = -o -COPTS = -c -DAMIGA -O1 $(OUTFMTS) +COPTS = -c -DAMIGA -D__USE_INLINE__ -O1 $(OUTFMTS) LD = $(CC) LDOUT = $(CCOUT) diff --git a/Makefile.PUp b/Makefile.PUp index a23bd1c..91c0fe7 100644 --- a/Makefile.PUp +++ b/Makefile.PUp @@ -11,7 +11,7 @@ COPTS = -c -c99 -DAMIGA -O1 $(OUTFMTS) LD = $(CC) LDOUT = $(CCOUT) -LDFLAGS = -lm +LDFLAGS = -lm -lamiga RM = delete force quiet diff --git a/Makefile.WOS b/Makefile.WOS index b186ff3..ff0b062 100644 --- a/Makefile.WOS +++ b/Makefile.WOS @@ -11,7 +11,7 @@ COPTS = -c -c99 -DAMIGA -O1 $(OUTFMTS) LD = $(CC) LDOUT = $(CCOUT) -LDFLAGS = -lm +LDFLAGS = -lm -lamiga RM = delete force quiet diff --git a/cond.c b/cond.c index 910065a..dd46320 100644 --- a/cond.c +++ b/cond.c @@ -34,7 +34,7 @@ void cond_check(void) } -/* establish a new level of condititional assembly */ +/* establish a new level of conditional assembly */ void cond_if(char flag) { if (++clev >= MAXCONDLEV) diff --git a/doc/cpu_jagrisc.texi b/doc/cpu_jagrisc.texi index f62b347..2ec0e1d 100644 --- a/doc/cpu_jagrisc.texi +++ b/doc/cpu_jagrisc.texi @@ -108,7 +108,7 @@ compatibility with various syntax modules. @item Encoding of @code{MOVEI} instruction in little-endian mode is unkown. @item The developer has to provide the necessary @code{NOP} instructions after jumps, or @code{OR} instructions to work around hardware bugs, - himself. + her/himself. @end itemize diff --git a/doc/output_hunk.texi b/doc/output_hunk.texi index c77d64b..2c8d6dd 100644 --- a/doc/output_hunk.texi +++ b/doc/output_hunk.texi @@ -9,7 +9,7 @@ selected with the @option{-Fhunk} option to generate objects and with the @section Additional options for this module @table @option - @iten -hunkpad= + @item -hunkpad= Sets a two-byte code used for aligning a code hunk to the next 32-bit border. Defaults to 0x4e71 on M68k to allow linking of functions which extend over two object files. diff --git a/doc/syntax_mot.texi b/doc/syntax_mot.texi index beb44b3..ea6f538 100644 --- a/doc/syntax_mot.texi +++ b/doc/syntax_mot.texi @@ -45,10 +45,10 @@ This syntax module provides the following additional options: @item -localu Local symbols are prefixed by @code{'_'} instead of @code{'.'}. For - Devpac compatbility, which offers a similar option. + Devpac compatibility, which offers a similar option. @item -phxass - PhxAss-compatibilty mode. Only directives known to PhxAss are recognized. + PhxAss-compatibility mode. Only directives known to PhxAss are recognized. Enables the following features: @itemize @minus @item @code{section } starts a code section named @code{} @@ -480,6 +480,25 @@ CPU- and output-module support them): @item ifmacrond Conditionally assemble the following line if is undefined. +@item iif + Conditionally assemble the following . + IIF stands for Immediate IF. + If the value of is non-zero then is assembled. + No @code{ENDC} should be used in conjunction with this directive. + The can not include a label, but a label may precede the + @code{IIF} directive. For example: + @code{foo IIF bar equ 42} + The @code{foo} label will be assigned with @code{42} if @code{bar} + evaluates to true, otherwise @code{foo} will be assigned with the + current program counter. + The case when assigning a value in the @code{IIF } using + the equal (@code{=}) operator and the option @option{-spaces} + is used can't work as the equal operator + will be evaluated as part of the expression. + I.e. @code{foo IIF 1+1 = 42} will work, but @code{foo IIF 1 + 1 = 42} + when the option @option{-spaces} is specified won't work as + @code{= 42} will be evaluated as part of the expression. + @item incbin [,[,]] Inserts the binary contents of into the object code at this position. When is specified, then the given number @@ -488,7 +507,7 @@ CPU- and output-module support them): from that file. The file will be searched first in the current directory, then in all paths defined by @option{-I} or @code{incdir} - in the order of occurence. + in the order of occurrence. @item incdir Add another path to search for include files to the list of @@ -499,7 +518,7 @@ CPU- and output-module support them): Include source text of at this position. The include file will be searched first in the current directory, then in all paths defined by @option{-I} or @code{incdir} in the order of - occurence. + occurrence. @item inline Local labels in the following block are isolated from previous @@ -678,11 +697,11 @@ CPU- and output-module support them): contain a new value from now on. @item setfo - Sets the stack-frame offset counter to . + Sets the stack-frame offset counter to . See @code{fo} directive. @item setso - Sets the structure offset counter to . + Sets the structure offset counter to . See @code{so} directive. @item