I am not able to figure out what does different imm value after svc mean. e.g.
svc.n #c6
svc.n #ac
Can anyone please help?
I am not able to figure out what does different imm value after svc mean. e.g.
svc.n #c6
svc.n #ac
Can anyone please help?
Copyright © 2021 Jogjafile Inc.
The immediate does nothing at all. It's just encoded into the instruction, so if you want it you can get it.
So, if you only have a single SVC handler, the immediate is arbitrary. If you have multiple handlers and need to invoke the right one, you need to find the instruction that generated the SVC IRQ and dismantle it to find the immediate.
For example, on ARMv7m:
You could then use the immediate to index into a jump table, for example.