Address: Difference between revisions

264 bytes added ,  6 September 2021
m
Line 36: Line 36:
:''Main page: [[Segment]]''
:''Main page: [[Segment]]''


Segmented addresses are addresses used to reference segmented data. They consist of the 1-byte segment number, which can range from 0x01 to 0x1F (inclusive), and the 3-byte segment offset. Unlike the TLB, SM64's segmentation system is not a feature of the N64 but is implemented in software.
Segmented addresses are addresses used to reference segmented data. They consist of the 1-byte segment number, which can range from 0x01 to 0x1F (inclusive), and the 3-byte segment offset. Unlike the TLB, SM64's segmentation system is not a feature of the N64 but is implemented in software. This means that unlike virtual addresses, segmented addresses cannot be dereferenced directly, and must be converted to virtual addresses first, by adding the address's segment offset to the base address of the segment the address's segment number corresponds to.