Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3556

Bare metal, Assembly language • Re: BCS mnemonic (?)

$
0
0
Try RRXS instead of RRX. I think RRX used like that doesn't set the carry flag.

I could be wrong. I'm a bit rusty on assembler.
You're not wrong. The {S} suffix is required to shift bit 0 into the carry flag.
For ARMv7, (32-bit) the reference is in section 7.7.118 of the Architecture Reference Manual. Having the Architecture Reference handy is invaluable for assembly programming.

Statistics: Posted by creatid — Sat Dec 16, 2023 9:34 pm



Viewing all articles
Browse latest Browse all 3556

Trending Articles