;redcode-lp ;name Amethystine Python ;author inversed ;strategy Oneshot with spl/jmp-dat clear and imp failsafe ;assert (CORESIZE==8000) step equ 20 hop equ 10 sofs equ 2779 safe equ 12 gap1 equ 5 gap2 equ 17 cptr equ sptr-2 iofs equ 744 x0 equ sptr org start sptr dat x0+sofs+hop , x0+sofs kill dat 1 , safe cs0 spl # step+1 , step cloop mov * kill , > cptr mov cj , > cptr djn.f cloop , } cs0 cj jmp -1 , safe for gap1 dat 0 , 0 rof sloop add cs0 , sptr sne * sptr , @ sptr djn.f sloop , { sptr mov sptr , cptr spl * sloop , { sloop x spl imp+iofs , 0 imp mov.i # 4000 , 1 for gap2 dat 0 , 0 rof start mov imp , * x jmp @ 0 , sloop+1