Hitachi SH7750 Programming Manual page 388

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
Table of Contents

Advertisement

R[n]–=4;
Write_Long(R[n],MACH);
PC+=2;
}
STSMMACL(int n)
{
R[n]–=4;
Write_Long(R[n],MACL);
PC+=2;
}
STSMPR(int n)
{
R[n]–=4;
Write_Long(R[n],PR);
PC+=2;
}
Possible Exceptions:
• Data TLB miss exception
• Data TLB protection violation exception
• Address error
Example
STS MACH,R0
STS.L PR,@-R15
Rev. 2.0, 03/99, page 374 of 396
/* STS.L MACL,@-Rn */
/* STS.L PR,@-Rn */
; Before execution
; After execution
; Before execution
; After execution
R0 = H'FFFFFFFF, MACH = H'00000000
R0 = H'00000000
R15 = H'10000004
R15 = H'10000000, (R15) = PR

Advertisement

Table of Contents
loading

Table of Contents