diff --git a/docs/Features/auto_lba.md b/docs/Features/auto_lba.md index 9aaa6406..a4f32643 100644 --- a/docs/Features/auto_lba.md +++ b/docs/Features/auto_lba.md @@ -26,9 +26,43 @@ enum LBA { ``` ### __Overlay__ -More Text +For use with Overlays you need to include the related header file. You must place this include into the Namespace of your overlay to avoid name clash. Now the `lba` array is accessible. + +```c++ +namespace Overlay { + #include + + // ... + printf("LBA: %i, Words: %i\n", lba[LBA::SYSTEM_CNF].lba, lba[LBA::SYSTEM_CNF].size_words); + // ... + + __declare_overlay_header(execute, LBA); +} +``` ### __Main file__ -Text +For use with the main file you need to include the header file and use the `__declare_lba_header` macro with the name of your enum to create the LBA area in any file. The header allows to access the `lba` array with your enum as the index. -## For CD generation \ No newline at end of file +```c++ +#include + +// ... +printf("LBA: %i, Words: %i\n", lba[LBA::SYSTEM_CNF].lba, lba[LBA::SYSTEM_CNF].size_words); +// ... + +__declare_lba_header(LBA); +``` + +## For CD generation +To automatically fill the LBA values `psxcdgen_ex` needs to be used. + +For the main file the special XML type `Main` needs to be used while specifing the LBA file being used. + +For Overlays the instruction will follow... + +```xml + + System.cnf +
Application.psexe
+ +``` \ No newline at end of file