CPSR

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

CPSR

Carsten Bager
I would like to do the following in assembler (ARM), so I can write
out the Pascal variable pas_cpsr containing the CPSR register.  Is it
possible?

  asm
    mrs   R0, CPSR
    ldr     r1,pas_cpsr
    str     r0,[r1]
  end;

Regards Carsten

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal