From 7770827cce8029310c05d93fa9232a3620689ef5 Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Wed, 31 Jul 2013 22:14:31 -0600 Subject: [PATCH] Redefine consistent names for section types, and document the changes. --- doc/asm.htm | 10 +++-- doc/asm/db.htm | 4 +- doc/asm/ds.htm | 2 +- doc/asm/section.htm | 85 +++++++++++++++++++++----------------- doc/link.htm | 17 +------- doc/rgb0.htm | 10 ++--- include/asm/mylink.h | 8 ++-- include/link/assign.h | 4 +- include/link/mylink.h | 6 +-- src/asm/gameboy/yaccprt2.y | 2 +- src/asm/gameboy/yaccprt4.y | 14 +++---- src/asm/globlex.c | 11 +++-- src/asm/output.c | 16 +++---- src/link/assign.c | 68 +++++++++++++++--------------- src/link/mapfile.c | 6 +-- src/link/object.c | 12 +++--- src/link/output.c | 10 ++--- src/link/rgblink.1 | 6 +-- 18 files changed, 145 insertions(+), 146 deletions(-) diff --git a/doc/asm.htm b/doc/asm.htm index 8d63d604..735dc01e 100644 --- a/doc/asm.htm +++ b/doc/asm.htm @@ -42,7 +42,7 @@

Other ways than mnemonics to define data

@@ -65,10 +65,7 @@
  • ATAN
  • ATAN2
  • BANK -
  • BSS -
  • CODE
  • COS -
  • DATA
  • DB
  • DEF
  • DIV @@ -101,6 +98,8 @@
  • PUSHS
  • REPT
  • RB +
  • ROM0 +
  • ROMX
  • RSRESET
  • RSSET
  • RW @@ -108,6 +107,7 @@
  • SET
  • SHIFT
  • SIN +
  • SRAM
  • STRCAT
  • STRCMP
  • STRIN @@ -117,6 +117,8 @@
  • STRUPR
  • TAN
  • VRAM +
  • WRAM0 +
  • WRAMX
  • WARN
  • XDEF
  • XREF diff --git a/doc/asm/db.htm b/doc/asm/db.htm index 59a019cd..e4cfc3c1 100644 --- a/doc/asm/db.htm +++ b/doc/asm/db.htm @@ -10,13 +10,13 @@

    DB defines a list of bytes that will be stored in the final image. Ideal for tables and text.

    DB   1,2,3,4,"This is a string"

    Alternatively you can use DW to store a list of words. Strings are not allowed as arguments to DW.

    -

    You can also use DB and DW without arguments. This works exactly like “DS 1” and “DS 2” respectively. Consequently DB and DW can be used in a BSS/HRAM/VRAM section.

    +

    You can also use DB and DW without arguments. This works exactly like “DS 1” and “DS 2” respectively. Consequently DB and DW can be used in a WRAM0/WRAMX/HRAM/VRAM/SRAM section.

    See also:

    diff --git a/doc/asm/ds.htm b/doc/asm/ds.htm index ce0610a8..8ec5b22e 100644 --- a/doc/asm/ds.htm +++ b/doc/asm/ds.htm @@ -7,7 +7,7 @@

    DS

    -

    DS allocates a number of bytes. The content is undefined. This is the preferred method of allocationg space in a BSS section. You can however also use DB and DW without any arguments.

    +

    DS allocates a number of bytes. The content is undefined. This is the preferred method of allocationg space in a RAM section. You can however also use DB and DW without any arguments.

    DS   str_SIZEOF     ;allocate str_SIZEOF bytes

    See also: