mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
12 lines
263 B
Smalltalk
12 lines
263 B
Smalltalk
|
#
|
||
|
# TUCK test
|
||
|
#
|
||
|
# Logic: // w1 w2 -- w2 w1 w2
|
||
|
#
|
||
|
FORWARD success;
|
||
|
FORWARD failure;
|
||
|
: try_0 0 = IF success ELSE failure ENDIF ;
|
||
|
: try_2 2 = IF try_0 ELSE failure ENDIF ;
|
||
|
: try_1 1 = IF try_2 ELSE failure ENDIF ;
|
||
|
: MAIN 0 1 2 TUCK 2 = IF try_1 ELSE failure ENDIF ;
|