mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Add Forth words 2>r, 2r> and 2r@ as described in the ANSI Forth core extensions as they are required for OpenSolaris.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@911 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
417c8b97e2
commit
238ba3218d
@@ -404,6 +404,17 @@ variable leaves 0 leaves !
|
|||||||
|
|
||||||
: 2rot >r >r 2swap r> r> 2swap ;
|
: 2rot >r >r 2swap r> r> 2swap ;
|
||||||
|
|
||||||
|
\
|
||||||
|
\ 7.3.1.4 - return stack
|
||||||
|
\
|
||||||
|
|
||||||
|
\ Note: these words are not part of the official OF specification, however
|
||||||
|
\ they are part of the ANSI DPANS94 core extensions (see section 6.2) and
|
||||||
|
\ so this seems an appropriate place for them.
|
||||||
|
: 2>r swap >r >r ;
|
||||||
|
: 2r> r> r> swap ;
|
||||||
|
: 2r@ r> r> 2dup >r >r swap ;
|
||||||
|
|
||||||
\
|
\
|
||||||
\ 7.3.2.1 - single precision integer arithmetic (part 1)
|
\ 7.3.2.1 - single precision integer arithmetic (part 1)
|
||||||
\
|
\
|
||||||
|
|||||||
Reference in New Issue
Block a user