Changeset dc16bb4852392bd8b084f5e35f2fff6e29a105cf
Commiter: Charles Childers
Author: Charles Childers
Parent: fbec8f49ae
(2010/03/10 14:24) About 2 years ago
remove TRUE and FALSE; fix bugs in building; pristine image now core+stage2+vocabs
Commiter: Charles Childers
Author: Charles Childers
Parent: fbec8f49ae
(2010/03/10 14:24) About 2 years ago
remove TRUE and FALSE; fix bugs in building; pristine image now core+stage2+vocabs
{{{{: .colon getxt @ TRUE =if getxt off ;then m, ;: save ( - ) 1 4 out 0 0 out wait [ 99 ,: save ( - ) 1 4 out 0 0 out wait -9 5 out wait ;: boot-new ( - ) relocate [ 8 , 0 , ] ;here IMAGE-SIZE zallot target ! target @ origin !-1 constant TRUE ( -f )0 constant FALSE ( -f ): if ( f- ) FALSE literal, ` !if ; compile-only: if ( f- ) 0 literal, ` !if ; compile-only: = ( xy-f ) =if TRUE ;then FALSE ;: = ( xy-f ) =if -1 ;then 0 ;: <> ( xy-f ) !if TRUE ;then FALSE ;: <> ( xy-f ) !if -1 ;then 0 ;: > ( xy-f ) >if TRUE ;then FALSE ;: > ( xy-f ) >if -1 ;then 0 ;: < ( xy-f ) <if TRUE ;then FALSE ;: < ( xy-f ) <if -1 ;then 0 ;: :find ( a-af ) last repeat @ 2dup =if drop @ TRUE ;then dup 0; drop again ;: :find ( a-af ) last repeat @ 2dup =if drop @ -1 ;then dup 0; drop again ;expose FALSE expose TRUE( 6.2.1485 FALSE ) ( Supported by Retro )( 6.2.1485 FALSE ) 0 constant FALSE( 6.2.2298 TRUE ) ( Supported by Retro )( 6.2.2298 TRUE ) -1 constant TRUE: < ( xy-f ) >if FALSE ;then TRUE ;: < ( xy-f ) >if 0 ;then -1 ;: > ( xy-f ) <if FALSE ;then TRUE ;: > ( xy-f ) <if 0 ;then -1 ;