汇编代码:
STM8:
CriticalReadByte:
PUSH CC
POP A
AND A, #0x28
LD S:?b0, A
SIM
// 27 {
// 28 result=pdata[0];
LD A, (X)
LD S:?b1, A
// 29 }
LD A, S:?b0
PUSH CC
POP A
AND A, #0xffffffffffffffd7
OR A, S:?b0
PUSH A
POP CC
// 30 return result;
LD A, S:?b1
RET
// 31 }
// 32