F$SchBit
From NitrOS-9
Search Bits | Searches a specified memory allocation bit map for a free memory block of a specified size |
OS9 F$SchBit 103F 12 |
Entry Conditions
D starting bit number
X starting address of the map
Y bit count (free bit block size)
U ending address of the map
Exit Conditions
D starting bit number
Y bit count
Error Output
CC carry set on error
B error code (if any)
Additional Information
- The Search Bit call searches the specified allocation bit map for a free block (cleared bits) of the required length. The search starts at the starting bit number. If no block of the specified size exists, the call returns with the carry set, starting bit number, and size of the largest block.
krnp2