home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 10
/
AU_CD10.iso
/
Updates
/
Perl
/
Non-RPC
/
Docs
/
RISCOS-Library-Docs
/
ValidateAddr.pm
< prev
Wrap
Text File
|
1999-04-17
|
716b
|
23 lines
NAME
RISCOS::ValidateAddr -- perl module that checks an address range
is valid
SYNOPSIS
use RISCOS::ValidateAddr;
$is_valid = validate_addr ($lower_inc, $upper_exc);
DESCRIPTION
This module provides a perl interface to `OS_ValidateAddress'.
This checks the address range between the lower (inclusive) and
upper (exclusive) bounds to see if the entire specified range
maps into physical RAM or ROM. (The memory should actually exist
unless you've been fiddling with `OS_SetMemMapEntries'.)
Returns `2' if the address range is in ROM, `1' if the address
range is valid as RAM, `0' if it is not, undefined on error.
AUTHOR
Nicholas Clark <nick@unfortu.net>