--- gforth/cross.fs 1994/06/01 10:05:14 1.5 +++ gforth/cross.fs 1994/07/08 15:00:30 1.7 @@ -1,5 +1,5 @@ \ CROSS.FS The Cross-Compiler 06oct92py -\ $Id: cross.fs,v 1.5 1994/06/01 10:05:14 pazsan Exp $ +\ $Id: cross.fs,v 1.7 1994/07/08 15:00:30 anton Exp $ \ Idea and implementation: Bernd Paysan (py) \ Copyright 1992 by the ANSI figForth Development Group @@ -134,7 +134,8 @@ include machine.fs : cell+ cell + ; : cells cell<< lshift ; : chars ; - +: floats float * ; + >CROSS : cell/ cell<< rshift ; >TARGET @@ -207,6 +208,8 @@ CREATE Bittable 80 c, 40 c, 20 c, 10 c, : ! ( w taddr -- ) >r bswap r> >image ! ; : c@ ( taddr -- char ) >image c@ ; : c! ( char taddr -- ) >image c! ; +: 2@ ( taddr -- x1 x2 ) T dup cell+ @ swap @ H ; +: 2! ( x1 x2 taddr -- ) T swap over ! cell+ ! H ; \ Target compilation primitives 06oct92py \ included A! 16may93jaw @@ -488,6 +491,8 @@ Cond: [Char] ( "" -- ) restrict Cond: EXIT ( -- ) restrict? compile ;S ;Cond +Cond: ?EXIT ( -- ) 1 abort" CROSS: using ?exit" ;Cond + Cond: ; ( -- ) restrict? depth ?dup IF 1- <> ABORT" CROSS: Stack changed" ELSE true ABORT" CROSS: Stack empty" THEN