250 likes | 365 Views
ECE6580 Lecture 8. Mode1 Reg Bit 21. bit set mode1 PEYEN;. bit clr mode1 PEYEN;. Examples R7=BSET R6 BY R0, DM(I0,M3)=R5, PM(I11,M15)=R4; R8=DM(I4,M1), PM(I12 M12)=R0;. Type 2: Compute Compute operation, optional condition Syntax IF COND compute ;. Example IF MV R6=SAT MRF (UI);.
E N D
Mode1 Reg Bit 21 bit set mode1 PEYEN; bit clr mode1 PEYEN;
Examples R7=BSET R6 BY R0, DM(I0,M3)=R5, PM(I11,M15)=R4; R8=DM(I4,M1), PM(I12 M12)=R0;
Type 2: Compute Compute operation, optional condition Syntax IF COND compute ; Example IF MV R6=SAT MRF (UI);
Examples R6=R3-R11, DM(I0,M1)=ASTATx; IF NOT SV F8=CLIP F2 BY F14, F7=PM(I12,M12);
Examples IF FLAG0_IN F1=F5*F12, F11=PM(I10,6); R12=R3 AND R1, DM(6,I1)=R6;
Examples IF TF MRF=R2*R6(SSFR), M4=R0; LCNTR=L7; R0 <-> S1;
Examples IF GT R2 = LSHIFT R6 BY 0x4, DM(I4,M4)=R0; IF NOT SZ R3 = FEXT R1 BY 8:4;
Examples IF NOT FLAG2_IN R4=R6*R12(SUF), MODIFY(I10,M8); IF NOT LCE MODIFY(I3,M1);
Examples IF AV JUMP(PC,0x00A4) (LA); CALL init (DB); {init is a program label} JUMP (PC,2) (DB,CI); {clear current int. for reuse}
Examples JUMP(M8,I12), R6=R6-1; IF EQ CALL(PC,17)(DB), ELSE R6=R6-1;
Examples IF TF JUMP(M8, I8), ELSE R6=DM(I6, M1); IF NE JUMP(PC, 0x20), ELSE F12=FLOAT R10 BY R3, R6=DM(I5, M0);
Examples RTI, R6=R5 XOR R1; IF le RTS(DB); IF sz RTS, ELSE R0=LSHIFT R1 BY R15;
Examples LCNTR=100, DO fmax UNTIL LCE; {fmax is a program label} LCNTR=R12, DO (PC,16) UNTIL LCE;
Examples DO end UNTIL FLAG1_IN; {end is a program label} DO (PC,7) UNTIL AC;
Examples DM(temp)=MODE1; {temp is a program label} WAIT=PM(0x489060);
Examples DM(24,I5)=TCOUNT; USTAT1=PM(offs,I13); {"offs" is a user-defined constant}
Examples DM(I4,M0)=19304; PM(I14,M11)=count; {count is user-defined constant}
Examples ASTATx=0x0; M15=mod1; {mod1 is user-defined constant}
Examples BIT SET MODE2 0x00000070; BIT TST ASTATx 0x00002000;
Examples MODIFY (I4,304); BITREV (I7,space); {space is a user-defined constant}