The address may be in high or low memory depending on the value of HERE when PAD is executed.
PAD is calculated as HERE +80 bytes. Care should be taken when HERE points to an address close to the end of either upper or lower memory expansion, as PAD could conceviably return an address that lies outside of legal memory ranges.
Care should also be taken when compiling data or code, or ALLOTing data space, as these actions will advance HERE, causing a different address to be supplied the next time PAD is called.
|