home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / network / netlib_1 / NetLibSrc / hdr / Regs next >
Text File  |  1995-08-14  |  1KB  |  117 lines

  1. ;  This header file for GETting from assembler source defines register names & other bits
  2.  
  3.  
  4. ;  Use the RN directive to define ARM register names
  5.  
  6. r0        RN    0
  7. r1        RN    1
  8. r2        RN    2
  9. r3        RN    3
  10. r4        RN    4
  11. r5        RN    5
  12. r6        RN    6
  13. r7        RN    7
  14. r8        RN    8
  15. r9        RN    9
  16. r10        RN    10
  17. r11        RN    11
  18. r12        RN    12
  19. r13        RN    13
  20. r14        RN    14
  21. r15        RN    15
  22.  
  23. ;  Define APCS standard register names. Note: This is APCS_R
  24.  
  25. a1        RN    r0    ; Note: register names can be defined from each other
  26. a2        RN    r1
  27. a3        RN    r2
  28. a4        RN    r3
  29. v1        RN    r4
  30. v2        RN    r5
  31. v3        RN    r6
  32. v4        RN    r7
  33. v5        RN    r8
  34. v6        RN    r9
  35. sl        RN    r10
  36. fp        RN    r11
  37. ip        RN    r12
  38. sp        RN    r13
  39. lr        RN    r14
  40. pc        RN    r15
  41.  
  42.  
  43. ;  Use the FN directive to define floating point register names
  44.  
  45. f0        FN    0
  46. f1        FN    1
  47. f2        FN    2
  48. f3        FN    3
  49. f4        FN    4
  50. f5        FN    5
  51. f6        FN    6
  52. f7        FN    7
  53.  
  54.  
  55. ;  Use the CN directive to define co-processor register names
  56.  
  57. c0        CN    0
  58. c1        CN    1
  59. c2        CN    2
  60. c3        CN    3
  61. c4        CN    4
  62. c5        CN    5
  63. c6        CN    6
  64. c7        CN    7
  65. c8        CN    8
  66. c9        CN    9
  67. c10        CN    10
  68. c11        CN    11
  69. c12        CN    12
  70. c13        CN    13
  71. c14        CN    14
  72. c15        CN    15
  73.  
  74.  
  75. ;  Use the CP directive to define co-processor names
  76.  
  77. cp0        CP    0
  78. cp1        CP    1
  79. cp2        CP    2
  80. cp3        CP    3
  81. cp4        CP    4
  82. cp5        CP    5
  83. cp6        CP    6
  84. cp7        CP    7
  85. cp8        CP    8
  86. cp9        CP    9
  87. cp10        CP    10
  88. cp11        CP    11
  89. cp12        CP    12
  90. cp13        CP    13
  91. cp14        CP    14
  92. cp15        CP    15
  93.  
  94.  
  95. ;  Status register masks
  96.  
  97. Fbit        EQU    1:SHL:26
  98. Ibit        EQU    1:SHL:27
  99. Vbit        EQU    1:SHL:28
  100. Cbit        EQU    1:SHL:29
  101. Zbit        EQU    1:SHL:30
  102. Nbit        EQU    1:SHL:31
  103.  
  104.  
  105. ;  Processor modes
  106.  
  107. Usermode    EQU    2_00
  108. FIQmode        EQU    2_01
  109. IRQmode        EQU    2_10
  110. SVCmode        EQU    2_11
  111.  
  112. ;  Errno macro
  113.  
  114.         GET     Vars
  115.  
  116.         END
  117.