; testROP2 : test all the ROP2 operations ; Version Sat, 17 Mar 2012 11:47:45 GMT .name testROP2 .profile YASEP16 ; NOTE: the -N functions complement ; the 2nd operand, not the first mov 8 A5 mov 16 PC ; where to jump in case of error add -2 R4 ; adjust error address MOV DEADh R5 HALT MOV 3 R2 MOV 5 R3 AND R2 R3 R4 ; 1 CMPU 1 R4 MOV A5 PC NEQ ANDN R2 R3 R4 ; 2 CMPU 2 R4 MOV A5 PC NEQ NAND R2 R3 R4 ; -2 CMPU -2 R4 MOV A5 PC NEQ OR R2 R3 R4 ; 7 CMPU 7 R4 MOV A5 PC NEQ ORN R2 R3 R4 CMPU -5 R4 MOV A5 PC NEQ NOR R2 R3 R4 ; -8 CMPU -8 R4 MOV A5 PC NEQ XOR R2 R3 R4 ; 6 CMPU 6 R4 MOV A5 PC NEQ XORN R2 R3 R4 ; -7 CMPU -7 R4 MOV A5 PC NEQ ;the end : mov 600Dh R5 HALT