h6. [[OS SWI Calls]] h6(. » [[OS_Module]] h6((. » OS_Module 20 h2. OS_ Module 20 h5. (SWI &1E) |_<^{width:4em}. Entry | | |<^. R0 |<^. 20 (&14) | |<^. R1 |<^. Module number, or 0 to start | |<^. R2 |<^. [[ROM Sections|ROM section]] | |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved | |<^. R1 |<^. Module number of found module +1 | |<^. R2 |<^. [[ROM Sections|ROM section]] | |<^. R3 |<^. Pointer to module name | |<^. R4 |<^. [[OS_Module Status|Status]]| |<^. R5 |<^. Chunk number of expansion card module | |<^. R6 |<^. [[BCD Version Number|BCD version number]] | h4. Use The purpose of this call is to enumerate ROM modules with version. h4. Notes This call returns information on one module that is currently in ROM along with its status. The module found is the given number of modules on from start of the given ROM section. If there are insufficient modules in the ROM section then the search continues with the next section; so the fifth module in a four module section would in fact be the first module of the next section. The ROM sections are scanned in order. The values in R0-R2 are the correct ones to use this call to enumerate the next module; hence repeated calls will give a full enumeration of all ROM modules. [[OS_Module 19]] is provides the same functionality, with the exception that it does not return the version information (in R6). h4. See also * [[BCD Version Number]] * [[OS_Module]] * [[OS_Module 19]] * [[OS_Module Status]] * [[ROM Sections]]