NOP
NOP
MAIN_LOOP: SET_A_HAND 2
CONST 1 R0
WAIT_NEG_LOOP: LOAD32 HAND1_L R1
ANL R0 R1
LOAD PREV_EX_REF R2
STORE PREV_EX_REF R1
SUB R2 R1
EQUAL EXIT_WAIT_NEG R0 R1
JUMP WAIT_NEG_LOOP
EXIT_WAIT_NEG: EQUAL0 WAIT_NEG_LOOP R1
SET_A_HAND 2
LOAD32 HAND1_L R1
ASR 1 R1
STORE32 DET1_SIN_L R1
ASR 14 R1
STORE32 DET1_VSIN_L R1
LOAD32 HAND2_L R1
ASR 1 R1
STORE32 DET2_SIN_L R1
ASR 14 R1
STORE32 DET2_VSIN_L R1
SET_A_HAND 6
LOAD32 HAND1_L R1
ASR 1 R1
STORE32 DET1_COS_L R1
ASR 14 R1
STORE32 DET1_VCOS_L R1
LOAD32 HAND2_L R1
ASR 1 R1
STORE32 DET2_COS_L R1
ASR 14 R1
STORE32 DET2_VCOS_L R1
JUMP MAIN_LOOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
