Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | 20 (reason code) |
R1 | Logical address |
Exit | |
---|---|
R0 | Area type: |
0: Dynamic Area | |
1: System area | |
Other values: Reserved | |
R1 | Area number |
This call can be used to locate the dynamic area or system area that encompasses the given address.
For dynamic areas, the area number returned in R1 will be the dynamic area number. For system areas, the area number will correspond to one of the area numbers recognised by OS_Memory 16.
If the address is not located in any area then an error will be returned.
This call only checks that the address is within the minimum and maximum bounds of the area. It does not verify that there is valid memory at that address. To check that there is valid memory at an arbitrary address, use a call such as OS_Memory 24 or OS_ValidateAddress.