mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
15 lines
420 B
Smalltalk
15 lines
420 B
Smalltalk
|
#
|
||
|
# RROT2 test
|
||
|
#
|
||
|
# Logic: // w1 w2 w3 w4 w5 w6 -- w5 w6 w1 w2 w3 w4
|
||
|
#
|
||
|
FORWARD success;
|
||
|
FORWARD failure;
|
||
|
: try_0 0 = IF success ELSE failure ENDIF ;
|
||
|
: try_5 5 = IF try_0 ELSE failure ENDIF ;
|
||
|
: try_6 6 = IF try_5 ELSE failure ENDIF ;
|
||
|
: try_1 1 = IF try_6 ELSE failure ENDIF ;
|
||
|
: try_2 2 = IF try_1 ELSE failure ENDIF ;
|
||
|
: try_3 3 = IF try_2 ELSE failure ENDIF ;
|
||
|
: MAIN 0 1 2 3 4 5 6 RROT2 4 = IF try_3 ELSE failure ENDIF ;
|