1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 19:29:45 +00:00

Slight fixes to the documentation.

This commit is contained in:
Laubzega 2018-09-11 22:14:45 -07:00
parent 1646acb26f
commit 3432788763

View File

@ -519,7 +519,7 @@ specify a segment attribute. There are five possible segment attributes:
rw means read/write rw means read/write
bss means that this is an uninitialized segment bss means that this is an uninitialized segment
zp a zeropage segment zp a zeropage segment
overwrite a segment that overwrites another one overwrite a segment that overwrites (parts of) another one
</verb></tscreen> </verb></tscreen>
@ -635,8 +635,8 @@ Here is an example:
<tscreen><verb> <tscreen><verb>
MEMORY { MEMORY {
RAM: file = "", start = $6000, size = $2000, type=bss; RAM: file = "", start = $6000, size = $2000, type=rw;
ROM: file = %O, start = $8000, size = $8000, type=ro; ROM: file = %O, start = $8000, size = $8000, type=ro;
} }
</verb></tscreen> </verb></tscreen>
@ -655,14 +655,15 @@ SEGMENTS {
</verb></tscreen> </verb></tscreen>
Segment named ORIGINAL contains the original code, disassembled or provided in Segment named ORIGINAL contains the original code, disassembled or provided in
a binary form. Subsequent four segments will be relocated to addresses a binary form (i.e. using <tt><ref id=".INCBIN" name=".incbin"></tt>
specified by their "start" attributes ("offset" can also be used) and then will directive). Subsequent four segments will be relocated to addresses specified
overwrite whatever was at these locations in the ORIGINAL segment. In the end, by their "start" attributes ("offset" can also be used) and then will overwrite
resulting binary output file will thus contain original data with the exception whatever was at these locations in the ORIGINAL segment. In the end, resulting
of four sequences starting at $9000, $f7e8, $8000 and $e5b7, which will sport binary output file will thus contain original data with the exception of four
code from their respective segments. How long these sequences will be depends sequences starting at $9000, $f7e8, $8000 and $e5b7, which will sport code from
on the lengths of corresponding segments - they can even overlap, so think what their respective segments. How long these sequences will be depends on the
you're doing. 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 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" particular memory area, and that they need at least one of "start" or "offset"