diff --git a/docs/gbz80.7.pdf b/docs/gbz80.7.pdf index 277bc866..a20d4eb5 100644 Binary files a/docs/gbz80.7.pdf and b/docs/gbz80.7.pdf differ diff --git a/docs/rgbasm.1.pdf b/docs/rgbasm.1.pdf index 9d56c889..dbecfbb8 100644 Binary files a/docs/rgbasm.1.pdf and b/docs/rgbasm.1.pdf differ diff --git a/docs/rgbasm.5.html b/docs/rgbasm.5.html index 5194a9c0..5dc2158a 100644 --- a/docs/rgbasm.5.html +++ b/docs/rgbasm.5.html @@ -936,8 +936,19 @@

- - (arg) + + (symbol) + Returns 1 if symbol has been defined, 0 otherwise. + String constants are not expanded within the parentheses. + + + (arg) + Returns 1 if arg's value is known by RGBASM (e.g. + if it can be an argument to IF), or 0 if only + RGBLINK can compute its value. + + + BANK(arg) Returns a bank number. If arg is the symbol @, this function returns the bank of the current section. If arg is a string, it returns the bank of @@ -966,17 +977,6 @@

(symbol) - Returns 1 if symbol has been defined, 0 otherwise. - String constants are not expanded within the parentheses. - - - (arg) - Returns 1 if arg's value is known by RGBASM (e.g. - if it can be an argument to IF), or 0 if only - RGBLINK can compute its value. - @@ -1044,7 +1044,7 @@

<

options are comma-separated and may include:

-
[bank]
+
[bank]
Specify which bank for the linker to place the section in. See above for possible values for bank, depending on type.
@@ -1075,25 +1075,25 @@

<
  • -
    SECTION "Cool Stuff",ROMX
    +
    SECTION "Cool Stuff", ROMX
    This switches to the section called “CoolStuff”, creating it if it doesn't already exist. It can end up in any ROM bank. Code and data may follow.
  • If it is needed, the the base address of the section can be specified:
    -
    SECTION "Cool Stuff",ROMX[$4567]
    +
    SECTION "Cool Stuff", ROMX[$4567]
  • An example with a fixed bank:
    -
    SECTION "Cool Stuff",ROMX[$4567],BANK[3]
    +
    SECTION "Cool Stuff", ROMX[$4567], BANK[3]
  • And if you want to force only the section's bank, and not its position within the bank, that's also possible:
    -
    SECTION "Cool Stuff",ROMX,BANK[7]
    +
    SECTION "Cool Stuff", ROMX, BANK[7]
  • Alignment examples: The first one could be useful for defining an OAM @@ -1101,8 +1101,8 @@

    < could also be appropriate for GBC HDMA, or for an optimized copy code that requires alignment.
    -
    SECTION "OAM Data",WRAM0,ALIGN[8] ; align to 256 bytes
    -SECTION "VRAM Data",ROMX,BANK[2],ALIGN[4] ; align to 16 bytes
    +
    SECTION "OAM Data", WRAM0, ALIGN[8] ; align to 256 bytes
    +SECTION "VRAM Data", ROMX, BANK[2], ALIGN[4] ; align to 16 bytes

@@ -1519,31 +1519,37 @@

+ + + name RB constexpr - Sets the preceding symbol to _RS - and adds constexpr - to _RS. - - - + Sets name to + _RS and then adds + constexpr to + _RS. + + + + name RW constexpr - Sets the preceding symbol to _RS - and adds constexpr - * 2 to _RS. - - - + Sets name to + _RS and then adds + constexpr * 2 to + _RS. + + + + name RL constexpr - Sets the preceding symbol to _RS - and adds constexpr - * 4 to _RS. + Sets name to + _RS and then adds + constexpr * 4 to + _RS. -

If the argument to RB, - RW, or RL is omitted, it's - assumed to be 1.

+

If the constexpr argument to + RB, RW, or + RL is omitted, it's assumed to be 1.

Note that colons ‘:’ following the name are not allowed.

Declaring an offset constant with EXPORT @@ -1567,14 +1573,14 @@

on input using IF constructs.

MACRO MyMacro
-         ld a, 80
-         call MyFunc
+    ld a, 80
+    call MyFunc
 ENDM

The example above defines @@ -1623,8 +1629,8 @@

MACRO outer
     MACRO inner
         PRINTLN "Hello!"
-    ENDM
-ENDM
+ ENDM ; this actually ends the 'outer' macro... +ENDM ; ...and then this is a syntax error!

But this will:

@@ -1666,14 +1672,14 @@