Today I have found a error again in your compiler! Namely, the instruction SAC or SAC.R in assembly block don't work trully.
For example:
Code: Select all
ACCAU = 0x00;
ACCAH = 0x120F;
ACCAL = 0xFF00;
CORCON = 0x0010; // SATDW = 1
asm {
mov #0xB900, W5 ; W5 = 0xB900
sac A,#4, W5 ; Result in W5 (=0x0484) is wrong
nop ; the true result is 0x0120
nop ; But, the following operations
sftac A,#4 ; return the true result
sac A,W5 ; W5 = 0x120 --> OK
}
Please reply to me!
Thank.