AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     chunk number
     R3 =     ROM section
<=     R0 =     0 (no more chunks)
or
<=     R0 =     next chunk number (non-zero even for last chunk)
     R1 =     size (bytes)
     R2 =     operating system identity byte
     R4 =     if a module     pointer to copy of module's name
           else          preserved
     R5 =     if a module     pointer to copy of module's help string
           else          preserved
     R6 =     if a module     address of module if directly executable, else 0
           else          preserved

This SWI reads information about a chunk from the chunk directory. If the chunk is a loader, RISC OS also loads it. Copies of a module's name and help strings are held in the Expansion Card Manager's workspace, and will become invalid after the next call to it.

Note that the last valid chunk entry will still return a non-zero number for the next chunk - when this SWI is called again with R0 >= this number it will return R0 = 0, signifying the end of the chunk directory.

See PRM 4, page 152.

[sh-index] Back to list of manuals