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


RP! Search:

In Return Stack Words in TurboForth Kernal

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

Sets the return stack pointer.

Example:

none

Comment:

Sets the return stack pointer to a new address.

Care should be taken when setting the return stack address. Generally, the contents of the old return stack should be copied to the new location before setting the return stack address, or a crash will almost certainly ensue.

Note: V1.2 does not contain RP! however, it is possible to set the return stack address with the following assembly code:

ASM: RP! ( addr -- )
  *SP+ R3 ** MOV, \ load R3 (return stack pointer) with addr
;ASM

See Also: RP@ 

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