mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-19 12:22:53 +01:00
and add usermode parsing of LDM/STM ops
This patch basically extends the ARM assembly reader a bit to properly parse CPSR and
SPSR flags for the MSR opcode, and allows the reader to understand
the ^ modifer for register lists for STMxx and LDMxx.
Previously the following combinations weren't possible in straight assembler:
MRS R0, CPSR
MRS R0, SPSR
MSR CPSR_CX, R0
LDMIA SP, {R0-R15}^
etc..
git-svn-id: trunk@22502 -
13 lines
128 B
ObjectPascal
13 lines
128 B
ObjectPascal
{ %norun }
|
|
{ %cpu=arm }
|
|
|
|
begin
|
|
asm
|
|
MRS R0, CPSR
|
|
MRS R0, SPSR
|
|
MSR CPSR_CX, R0
|
|
LDMIA SP, {R0-R15}^
|
|
end;
|
|
end.
|
|
|