# HG changeset patch # User lost # Date 1233428380 0 # Node ID 751b99efb1fc05258de6033f4524e21c2e3fe5e1 # Parent 178995c346d980233d94d1d519d85a565ee6f7eb Updated docs diff -r 178995c346d9 -r 751b99efb1fc doc/manual.docbook.sgml --- a/doc/manual.docbook.sgml Sat Jan 31 18:22:58 2009 +0000 +++ b/doc/manual.docbook.sgml Sat Jan 31 18:59:40 2009 +0000 @@ -269,6 +269,13 @@ eight bit modes, and the greater than sign (">") for forced sixteen bit modes. + +Additionally, LWASM supports using the asterisk ("*") to indicate +base page addressing. This should not be used in hand-written source code, +however, because it is non-standard and may or may not be present in future +versions of LWASM. + +
@@ -378,24 +385,35 @@ Data Directives FCB expr[,...] +.DB expr[,...] +.BYTE expr[,...] Include one or more constant bytes (separated by commas) in the output. -FDB expr[,...] + +FDB expr[,...] +.DW expr[,...] +.WORD expr[,...] Include one or more words (separated by commas) in the output. -FQB expr[,...] + +FQB expr[,...] +.QUAD expr[,...] +.4BYTE expr[,...] Include one or more double words (separated by commas) in the output. -FCC string + +FCC string +.ASCII string +.STR string Include a string of text in the output. The first character of the operand @@ -405,7 +423,10 @@ -FCN string + +FCN string +.ASCIZ string +.STRZ string Include a NUL terminated string of text in the output. The first character of @@ -416,7 +437,10 @@ -FCS string + +FCS string +.ASCIS string +.STRS string Include a string of text in the output with bit 7 of the final byte set. The @@ -455,7 +479,11 @@ -RMB expr + +RMB expr +.BLKB expr +.DS expr +.RS expr Reserve a number of bytes in the output. The number must be fully resolvable @@ -714,6 +742,20 @@ + +.MODULE string + + +This directive is ignored for most output targets. If the output target +supports encoding a module name into it, string +will be used as the module name. + + +As of version 2.2, no supported output targets support this directive. + + + +
@@ -885,6 +927,7 @@ SECTION name[,flags] SECT name[,flags] +.AREA name[,flags] Instructs the assembler that the code following this directive is to be @@ -941,12 +984,22 @@ sym EXPORT +sym .GLOBL + +EXPORT sym +.GLOBL sym + This directive defines sym as an exported symbol. This directive may occur at any point in the source code, even before the definition of the exported symbol. + +Note that sym may appear as the operand or as the +statement's symbol. If there is a symbol on the statement, that will +take precedence over any operand that is present. +