[fpc-pascal] CPSR

Carsten Bager carsten at beas.dk
Thu Jan 12 16:03:54 CET 2006


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




More information about the fpc-pascal mailing list