PUSHDP - Saves the assemblers current Direct Page value

	PUSHDP

PUSHDP save and current Direct Page value to a stack internal to the assembler. This allows the value to be saved and retrieved anywhere during the assembly process. Neither PUSHDP nor POPDP generate any code and all operations are internal to the assembler.

CASM has an internal Direct Page stack limit of 255.
Example:
	setdp	$01	* Set DP value to $01
	pushdp		* Saves $01 as DP value
	setdp	$02	* Set DP value to $02
	lda	$2dd	* Direct addressing
	popdp		*  Restore DP value
	lda	$111	* Direct addressing


See also:
SETDP, POPDP

Compatibility:
CASM X
CCASM  
OS-9 RMA  
Edt/Asm III  
Edtasm6309  
Disk Edtasm+  
Edtasm+  
Macro-80C