uxn/projects/examples/exercises/sierpinski.tal

25 lines
329 B
Tal
Raw Normal View History

2024-02-29 18:44:58 -05:00
( uxncli sierpinski.rom )
|100 @on-reset ( -> )
2024-02-29 18:54:22 -05:00
[ LIT &size 20 ] STHk #01 SUB
2024-02-29 18:44:58 -05:00
&ver ( -- )
DUP
#00 EQUk ?{
&pad ( -- )
#2018 DEO
INC GTHk ?&pad
} POP
#00
&fill
ANDk #202a ROT ?{ SWP } POP #18 DEO
#2018 DEO
INC ADDk STHkr LTH ?&fill
POP2
#0a18 DEO
#01 SUB DUP #ff NEQ ?&ver
POP POPr
BRK