2 つの特定の命令間で現在の割り込みが発生したかどうかを検出するアセンブリを作成しようとしています。
私はそれを持っていると思いますが、テストするのは簡単ではないので、誰かが検証できれば非常に感謝しています.
LDR R0, =INSTR_A ;address of first instruction
CMP LR, R0 ;are we ahead of the first?
BLO NOPE
LDR R0, =INSTR_B ;yes, address of second instr
CMP LR, R0 ;are we ahead of second?
{YEP}LO ;no, so we're between, do {stuff}LO
{MORE STUFF}LO
それは正しく見えますか?
私の懸念は、LS
代わりにLO
?を使用する必要があることです。