<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


PAD Search:

In Built-in Constants in TurboForth Kernal

Word Name: PAD
Type: Standard word
Data Stack Signature: -- address
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Returns an address for use as a temporary pad or work area.

Example:

none

Comment:

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.

See Also: H  FFAIHM  FFAILM  HERE 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>