Splitting Assets from Code: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Finished Specfile section)
m (Fixed a minor mistake in the Specfile section)
Line 48: Line 48:
extern u8 _spr_bearSegmentRomEnd[];
extern u8 _spr_bearSegmentRomEnd[];
</pre>
</pre>
Remember that segment name I told you that was important and had to be unique? Whatever you set your segment name to, it needs to match the <code>extern</code>'s. Meaning, if you called your segment <code>NAME</code>, then you would need to define the <code>extern</code>'s as <code>_NAMESegmentRomStart</code> and <code>_NAMESegmentRomStart</code> respectively.
Remember that segment name I told you that was important and had to be unique? Whatever you set your segment name to, it needs to match the <code>extern</code>'s. Meaning, if you called your segment <code>NAME</code>, then you would need to define the <code>extern</code>'s as <code>_NAMESegmentRomStart</code> and <code>_NAMESegmentRomEnd</code> respectively.


If you want to know more about Spec files, the online manuals do not contain a lot of information about them. Instead, it is highly recommended that you check out the '''Specfile Format''' chapter of the ''N64 EXEGCC Compiler User Guide'' for more information.
If you want to know more about Spec files, the online manuals do not contain a lot of information about them. Instead, it is highly recommended that you check out the '''Specfile Format''' chapter of the ''N64 EXEGCC Compiler User Guide'' for more information.