ECE 6580 Lecture 8 Mode 1 Reg Bit
ECE 6580 Lecture 8
Mode 1 Reg Bit 21 bit set mode 1 PEYEN; bit clr mode 1 PEYEN;
Examples R 7=BSET R 6 BY R 0, DM(I 0, M 3)=R 5, PM(I 11, M 15)=R 4; R 8=DM(I 4, M 1), PM(I 12 M 12)=R 0;
Type 2: Compute operation, optional condition Syntax IF COND compute ; Example IF MV R 6=SAT MRF (UI);
Examples R 6=R 3 -R 11, DM(I 0, M 1)=ASTATx; IF NOT SV F 8=CLIP F 2 BY F 14, F 7=PM(I 12, M 12);
Examples IF FLAG 0_IN F 1=F 5*F 12, F 11=PM(I 10, 6); R 12=R 3 AND R 1, DM(6, I 1)=R 6;
Examples IF TF MRF=R 2*R 6(SSFR), M 4=R 0; LCNTR=L 7; R 0 <-> S 1;
Examples IF GT R 2 = LSHIFT R 6 BY 0 x 4, DM(I 4, M 4)=R 0; IF NOT SZ R 3 = FEXT R 1 BY 8: 4;
Examples IF NOT FLAG 2_IN R 4=R 6*R 12(SUF), MODIFY(I 10, M 8); IF NOT LCE MODIFY(I 3, M 1);
Examples IF AV JUMP(PC, 0 x 00 A 4) (LA); CALL init (DB); {init is a program label} JUMP (PC, 2) (DB, CI); {clear current int. for reuse}
Examples JUMP(M 8, I 12), R 6=R 6 -1; IF EQ CALL(PC, 17)(DB), ELSE R 6=R 6 -1;
Examples IF TF JUMP(M 8, I 8), ELSE R 6=DM(I 6, M 1); IF NE JUMP(PC, 0 x 20), ELSE F 12=FLOAT R 10 BY R 3, R 6=DM(I 5, M 0);
Examples RTI, R 6=R 5 XOR R 1; IF le RTS(DB); IF sz RTS, ELSE R 0=LSHIFT R 1 BY R 15;
Examples LCNTR=100, DO fmax UNTIL LCE; {fmax is a program label} LCNTR=R 12, DO (PC, 16) UNTIL LCE;
Examples DO end UNTIL FLAG 1_IN; {end is a program label} DO (PC, 7) UNTIL AC;
Examples DM(temp)=MODE 1; {temp is a program label} WAIT=PM(0 x 489060);
Examples DM(24, I 5)=TCOUNT; USTAT 1=PM(offs, I 13); {"offs" is a user-defined constant}
Examples DM(I 4, M 0)=19304; PM(I 14, M 11)=count; {count is user-defined constant}
Examples ASTATx=0 x 0; M 15=mod 1; {mod 1 is user-defined constant}
Examples BIT SET MODE 2 0 x 00000070; BIT TST ASTATx 0 x 00002000;
Examples MODIFY (I 4, 304); BITREV (I 7, space); {space is a user-defined constant}
- Slides: 25