Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | 46 (&2E) |
R1 | Pointer to name of image (null terminated) |
R2 | Pointer to buffer |
R5 | Buffer size |
Exit | |
---|---|
All registers preserved |
The purpose of this call is to returns an image file’s used space map.
This SWI writes the image used space map to the buffer, 1 bits signifying used blocks, 0 bits free blocks. Bit 0 in a byte comes before bit 7.
This SWI sets bits up to min( buffer size, file size / block size ). Block size for a file can be read with OS_File 24. For a non-image file the buffer will be filled with ones.