2LITERAL

Interpretation:

Interpretation semantics for this word are undefined.

Compilation:

( x1 x2 -- )

Append the run-time semantics below to the current definition.

Run-time:

( -- x1 x2 )

Place cell pair x1 x2 on the stack.

See:

Rationale:

Typical use: : X ... [ x1 x2 ] 2LITERAL ... ;

Testing:

T{ : cd1 [ MAX-2INT ] 2LITERAL ; -> }T
T{ cd1 -> MAX-2INT }T

T{ 2VARIABLE 2v4 IMMEDIATE 5 6 2v4 2! -> }T
T{ : cd7 2v4 [ 2@ ] 2LITERAL ; cd7 -> 5 6 }T
T{ : cd8 [ 6 7 ] 2v4 [ 2! ] ; 2v4 2@ -> 6 7 }T

ContributeContributions