registers.inc 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {*****************************************************************************}
  2. { File : registers.inc }
  3. { Author : Mazen NEIFER }
  4. { Project : Free Pascal Compiler (FPC) }
  5. { Creation date : 2002\05\08 }
  6. { Last modification date : 2002\07\24 }
  7. { Licence : GPL }
  8. { Bug report : [email protected] }
  9. {*****************************************************************************}
  10. {
  11. $Id$
  12. }
  13. R_NONE
  14. {General purpose global registers}
  15. ,R_G0{This register is usually set to zero and used as a scratch register}
  16. ,R_G1,R_G2,R_G3,R_G4,R_G5,R_G6,R_G7
  17. {General purpose out registers}
  18. ,R_O0,R_O1,R_O2,R_O3,R_O4,R_O5,R_O6
  19. ,R_O7{This register is used to save the address of the last CALL instruction}
  20. {General purpose local registers}
  21. ,R_L0
  22. ,R_L1{This register is used to save the Program Counter (PC) after a Trap}
  23. ,R_L2{This register is used to save the Program Counter (nPC) after a Trap}
  24. ,R_L3,R_L4,R_L5,R_L6,R_L7
  25. {General purpose in registers}
  26. ,R_I0,R_I1,R_I2,R_I3,R_I4,R_I5,R_I6,R_I7
  27. {Floating point registers}
  28. ,R_F0,R_F1,R_F2,R_F3,R_F4,R_F5,R_F6,R_F7
  29. ,R_F8,R_F9,R_F10,R_F11,R_F12,R_F13,R_F14,R_F15
  30. ,R_F16,R_F17,R_F18,R_F19,R_F20,R_F21,R_F22,R_F23
  31. ,R_F24,R_F25,R_F26,R_F27,R_F28,R_F29,R_F30,R_F31
  32. {Floating point status/"front of queue" registers}
  33. ,R_FSR,R_FQ
  34. {Coprocessor registers}
  35. ,R_C0,R_C1,R_C2,R_C3,R_C4,R_C5,R_C6,R_C7
  36. ,R_C8,R_C9,R_C10,R_C11,R_C12,R_C13,R_C14,R_C15
  37. ,R_C16,R_C17,R_C18,R_C19,R_C20,R_C21,R_C22,R_C23
  38. ,R_C24,R_C25,R_C26,R_C27,R_C28,R_C29,R_C30,R_C31
  39. {Coprocessor status/queue registers}
  40. ,R_CSR
  41. ,R_CQ
  42. {Integer Unit control & status registers}
  43. ,R_PSR{Processor Status Register : informs upon the program status}
  44. ,R_TBR{Trap Base Register : saves the Trap vactor base address}
  45. ,R_WIM{Window Invalid Mask : }
  46. ,R_Y{Multiply/Devide Register : }
  47. {Ancillary State Registers : these are implementation dependent registers and
  48. thus, are not specified by the SPARC Reference Manual. I did choose the SUN's
  49. implementation according to the Assembler Refernce Manual.(MN)}
  50. ,R_ASR0,R_ASR1,R_ASR2,R_ASR3,R_ASR4,R_ASR5,R_ASR6,R_ASR7
  51. ,R_ASR8,R_ASR9,R_ASR10,R_ASR11,R_ASR12,R_ASR13,R_ASR14,R_ASR15
  52. ,R_ASR16,R_ASR17,R_ASR18,R_ASR19,R_ASR20,R_ASR21,R_ASR22,R_ASR23
  53. ,R_ASR24,R_ASR25,R_ASR26,R_ASR27,R_ASR28,R_ASR29,R_ASR30,R_ASR31
  54. {
  55. $Log$
  56. Revision 1.2 2002-10-02 22:20:28 mazen
  57. + out registers allocator for the first 6 scalar parameters which must be passed into %o0..%o5
  58. }