2/7/2002
CS269 Hardware/Software Engineering of
Embedded Systems
6
l
Example:
l
¡
/*Define new opcodes*/
¡
opcode A4 op2=0 CUST0
¡
opcode S4 op2=1 CUST0
¡
/*Define new assembly class*/
¡
iclass RR{A4,S4}{out arr, in ars, in art}
¡
/* Define new assembly instructions*/
¡
A4 arr, ars, art
¡
S4 arr, ars, art
¡