.global _evtproc ;; A4 = input data address ;; B4 = output data address ;; We do 6 reads from A4 and 2 writes to B4 ;; Normally we would do 5 reads from A4 and 1 read from the div. table ;; but for the moment we just want to simulate the real program. _evtproc: MVK .S1 64,A1 L1: LDW .D1T1 *A4++,A5 LDW .D1T1 *A4++,A5 LDW .D1T1 *A4++,A5 LDW .D1T1 *A4++,A5 LDW .D1T1 *A4++,A5 LDW .D1T1 *A4++,A5 [A1] SUB .S1 A1,1,A1 || STW .D2T1 A5,*B4++ [A1] B .S1 L1 || STW .D2T1 A5,*B4++ NOP 5 ; fill to 13 cycles per channel B .S2 B3 NOP 5