From: Laubzega Date: Wed, 12 Sep 2018 05:14:45 +0000 (-0700) Subject: Slight fixes to the documentation. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3432788763595512d0c864ba5fc4c8d143c5eb3f;p=cc65 Slight fixes to the documentation. --- diff --git a/doc/ld65.sgml b/doc/ld65.sgml index 48821797a..17f4378b7 100644 --- a/doc/ld65.sgml +++ b/doc/ld65.sgml @@ -519,7 +519,7 @@ specify a segment attribute. There are five possible segment attributes: rw means read/write bss means that this is an uninitialized segment zp a zeropage segment - overwrite a segment that overwrites another one + overwrite a segment that overwrites (parts of) another one @@ -635,8 +635,8 @@ Here is an example: MEMORY { - RAM: file = "", start = $6000, size = $2000, type=bss; - ROM: file = %O, start = $8000, size = $8000, type=ro; + RAM: file = "", start = $6000, size = $2000, type=rw; + ROM: file = %O, start = $8000, size = $8000, type=ro; } @@ -655,14 +655,15 @@ SEGMENTS { Segment named ORIGINAL contains the original code, disassembled or provided in -a binary form. Subsequent four segments will be relocated to addresses -specified by their "start" attributes ("offset" can also be used) and then will -overwrite whatever was at these locations in the ORIGINAL segment. In the end, -resulting binary output file will thus contain original data with the exception -of four sequences starting at $9000, $f7e8, $8000 and $e5b7, which will sport -code from their respective segments. How long these sequences will be depends -on the lengths of corresponding segments - they can even overlap, so think what -you're doing. +a binary form (i.e. using +directive). Subsequent four segments will be relocated to addresses specified +by their "start" attributes ("offset" can also be used) and then will overwrite +whatever was at these locations in the ORIGINAL segment. In the end, resulting +binary output file will thus contain original data with the exception of four +sequences starting at $9000, $f7e8, $8000 and $e5b7, which will sport code from +their respective segments. How long these sequences will be depends on the +lengths of corresponding segments - they can even overlap, so think what you're +doing. Finally, note that OVERWRITE segments should be the final segments loaded to a particular memory area, and that they need at least one of "start" or "offset"