h6. [[OS SWI Calls]] h6(. » [[OS_Module]] h6((. » OS_Module 22 h2. OS_ Module 22 h5. (SWI &1E) |_<^{width:4em}. Entry | | |<^. R0 |<^. 22 (&16) | |<^. R1 |<^. Module number, or 0 to start | |<^. R2 |<^. Instance number | |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved | |<^. R1 |<^. Updated for next module/instance | |<^. R2 |<^. Updated for next module/instance | |<^. R3 |<^. Pointer to [[Module Format|module]] | |<^. R4 |<^. Pointer to private word, or 0 if module was not correctly unlinked | |<^. R5 |<^. Pointer to postfix string (the instantiation's name) | h4. Use The purpose of this call is to enumerate ROM modules. Unlike [[OS_Module 12]], this call returns a pointer to the private word, instead of the value of the word. h4. Notes If a module is not multiply instantiated, R5 will be returned pointing to the string "Base". This call was introduced in RISC OS 5.27. h4. See also * [[Module Format]] * [[OS_Module]] * [[OS_Module 12]]