User Tools

Site Tools


wswan:guide:memory_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wswan:guide:memory_management [2025/07/27 09:43] – [Addressing RAM and ROM in assembly] asiewswan:guide:memory_management [2025/08/15 10:33] (current) – [Advanced section names] asie
Line 105: Line 105:
 with the following optional arguments: with the following optional arguments:
  
-  * **bank index** - the index of a bank, padded to the top of ROM. +  * **bank index** - the index of a bank, in hexadecimal, padded to the top of ROM. For example, ''.rom0_f'' always refers to the final bank, even if the ROM has more than 16 banks
-  * **offset** - the absolute offset within a bank or memory location.+  * **offset** - the absolute offset within a bank or memory location, in hexademical. For example, ''.rom0_ffff_1234'' would place at location ''0x..FFFF1234'' in the cartridge image.
  
 Note that the linker requires //distinct// section names to place things separately: in other banks, memory locations, or for garbage collection. One can use ''.'' after the prefix to specify an unique name. Note that the linker requires //distinct// section names to place things separately: in other banks, memory locations, or for garbage collection. One can use ''.'' after the prefix to specify an unique name.
wswan/guide/memory_management.txt · Last modified: by asie