;redcode-94 ;name Olivia Psp ;author Ben Ford ;assert (CORESIZE==8000) ;strategy q^4 -> stone/imp ;strategy reworking an old favorite by Ian Oversby ; ----- imp launcher ----- ihop equ (2667) iinc equ (-ihop-1) idjn equ (ijmp+5800) iorg equ (ijmp+1102) ioff equ (iorg+iinc*2) spin: spl # 0, $ 0 sub.f #iinc, ijmp imov: mov iimp, }iimp ijmp: djn.f ioff, {idjn dat $ 0, $ 0 iimp: mov.i #iorg, ihop ; ----- filler ----- for 42 dat $ 0, $ 0 rof dat $1234, $ qA qtb1: dat $1234, $ qB qwsh: stp.ab # 0, # qF qjmp: djn.f $ -1, $ -1 ; ----- stone ----- rptr equ (rock-5) ; -11 -5 rbmb equ (rock+7) ; -3 +7 rinc equ (3315) ; 3315 rclk equ (1599) ; 1599 rorg equ (rmov-rinc*rclk) rdjn equ (rock-rinc) bsrc: spl # 7, $ 0 rock: spl #rinc, rptr rend: djn.f -1, >rptr dat $ 0, $ 0 rdat: dat <2667, #rend-rptr+4 ; ----- q^4 scan ----- qX equ 2414 qI equ 5477 ; (qX-1)*qI==1%8000 qA equ (((qX-1+(qtb1-1-qptr))*qI)%CORESIZE) qB equ (((qX-1+(qtb1-0-qptr))*qI)%CORESIZE) qC equ (((qX-1+(qtb2-1-qptr))*qI)%CORESIZE) qD equ (((qX-1+(qtb2-0-qptr))*qI)%CORESIZE) qE equ (((qX-1+(qtb2+1-qptr))*qI)%CORESIZE) qF equ (((qX-1+(qwsh-0-qptr))*qI)%CORESIZE) qinc equ ( -7) qclk equ ( 11) qoff equ (qinc*qclk) qscn: sne qptr+qX*qE , qptr+qX*qE+qE seq qptr mov qjmp, >qptr qptr: mov qbmb, * qX sub #qinc, @qfnd mov qbmb, @qptr djn qptr, #qclk ; ----- boot ----- bdst equ (spin+5223) boot: mov {bsrc,