Assembly Cortex-M3 some Values being accepted, some not

-1

i am completely new to assembly and i don't really understand why

MOV R0,#0xFFFFFFFF works compiles fine, but

MOV R0,#0x000FFFFF

produces this error:

"Immediate 0x000FFFFF cannot be represented by 0-255 shifted left by 0-23 or duplicated in all, odd or even bytes"

due to my missing knowledge, I cannot interpret / understand the error message. I have not shifted or anything else before the given statement.

assembly
arm
cortex-m
thumb
immediate-operand
asked on Stack Overflow Apr 14, 2021 by lightyears99 • edited Apr 15, 2021 by Peter Cordes

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0