AS assembles MRS x, CPSR as MRS pc, CPSR

Timothy Baldwin T.E.Baldwin99 at members.leeds.ac.uk
Fri Aug 16 01:56:32 PDT 2002


AS assembles MRS x, CPSR as MRS pc, CPSR, here is patch to fix it:

diff -u gccsdk-old/riscos-aof/as/m_cpuctrl.c gccsdk2/riscos-aof/as/m_cpuctrl.c
--- gccsdk-old/riscos-aof/as/m_cpuctrl.c        Wed Jul 31 19:52:44 2002
+++ gccsdk2/riscos-aof/as/m_cpuctrl.c   Fri Aug 16 09:27:41 2002
@@ -401,7 +401,7 @@
 m_mrs (WORD cc)
 {
   cpuWarn (ARM6);
-  cc |= getCpuReg () << 12 | 0x0100F000;
+  cc |= getCpuReg () << 12 | 0x01000000;
   skipblanks ();
   if (inputLook () == ',')
     {

It's seems AS has forked somewhat, as I reported this bug to Darren Salt a few 
years ago, which he fixed quickly.

-- 
Timothy Baldwin
Member WYLUG, SWP, ANL, Leeds SA, Leeds Anti-war coalition
Stop the EU Copyright Directive!



More information about the gcc mailing list