;redcode ;name Validate 1.0R ;author Stefan Strack ;strategy System validation program - based on Mark Durham's validation suite ; ; This program tests your corewar system for compliance with the ICWS88- ; standard and compatibility with KotH. It self-ties (i.e. loops forever) ; if the running system is ICWS88-compliant and uses in-register evaluation; ; suicides (terminates) if the interpreter is not ICWS compliant and/or uses ; in-memory evaluation. A counter at label 'flag' can be used to determine ; where the exception occured. ; ; Tests: ; -all opcodes and addressing modes ; -ICWS88-style ADD/SUB ; -ICWS88-style SPL ; -correct timing ; -in-memory vs. in-register evaluation ; -core initialization start spl l1 count djn count,#37 ;time cycles t1 dat #0,#1 t2 dat #0,#3 l1 spl l2 dat