* How is CPSR referenced in asm construct?
@ 2002-09-24 12:39 John Gonzaga
0 siblings, 0 replies; only message in thread
From: John Gonzaga @ 2002-09-24 12:39 UTC (permalink / raw)
To: 'gcc-help@gcc.gnu.org'
I'm trying to read the CPSR (ARM7TDMI). Should this work?
unsigned long regCPSR;
asm( "mrs %0, CPSR" : "=r"(regCPSR) );
I'm getting "{C|S}PSR expected" errors. Thanks.
-John G-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-24 19:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-24 12:39 How is CPSR referenced in asm construct? John Gonzaga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).