(sierpinski.tal) Added example

This commit is contained in:
Devine Lu Linvega 2024-02-29 15:44:58 -08:00
parent c7ce358d0d
commit ae4d48bf56
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
( uxncli sierpinski.rom )
|100 @on-reset ( -> )
#10 STHk #01 SUB
&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