mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 19:22:05 +00:00
Touch up ds documentation as per rednex#350
This commit is contained in:
@@ -710,12 +710,10 @@ The following symbols are defined by the assembler:
|
|||||||
.Sh DEFINING DATA
|
.Sh DEFINING DATA
|
||||||
.Ss Declaring variables in a RAM section
|
.Ss Declaring variables in a RAM section
|
||||||
.Ic DS
|
.Ic DS
|
||||||
allocates a number of bytes.
|
allocates a number of empty bytes.
|
||||||
The content is undefined.
|
This is the preferred method of allocating space in a RAM section.
|
||||||
This is the preferred method of allocationg space in a RAM section.
|
You can also use
|
||||||
You can, however, use
|
.Ic DB , DW
|
||||||
.Ic DB ,
|
|
||||||
.Ic DW
|
|
||||||
and
|
and
|
||||||
.Ic DL
|
.Ic DL
|
||||||
without any arguments instead (see
|
without any arguments instead (see
|
||||||
@@ -726,9 +724,8 @@ below).
|
|||||||
DS 42 ; Allocates 42 bytes
|
DS 42 ; Allocates 42 bytes
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Note that in ROM sections, the bytes in the empty space left by
|
Empty space in RAM sections will not be initialized.
|
||||||
.Ic DS
|
In ROM sections, it will be filled with the value passed to the
|
||||||
will be filled with the value passed to the
|
|
||||||
.Fl p
|
.Fl p
|
||||||
command-line option, except when using overlays with
|
command-line option, except when using overlays with
|
||||||
.Fl O .
|
.Fl O .
|
||||||
|
|||||||
Reference in New Issue
Block a user