Đăng ký ARM
ARM có 31 mục đích chung thanh ghi 32-bit. Tại bất kỳ một thời gian, 16 của các đăng ký có thể nhìn thấy. Các khác
ghi này được dùng để tăng tốc độ xử lý ngoại lệ. Tất cả các specifiers đăng ký trong hướng dẫn ARM có thể
giải quyết bất kỳ trong số 16 đăng ký có thể nhìn thấy.
Các ngân hàng chính của 16 thanh ghi được sử dụng bởi tất cả các mã không có đặc quyền. Đây là những thanh ghi chế độ tài. Người sử dụng
chế độ khác với tất cả các chế độ khác theo nó là không có đặc quyền, có nghĩa là:
• Chế độ người dùng chỉ có thể chuyển sang chế độ bộ vi xử lý khác bằng cách tạo ra một ngoại lệ. SWI
hướng dẫn cung cấp cơ sở này từ điều khiển chương trình.
• Hệ thống bộ nhớ và coprocessors có thể cho phép chế độ tài ít truy cập vào bộ nhớ và coprocessor
chức năng hơn so với một chế độ đặc quyền.
Ba trong số 16 đăng ký có thể nhìn thấy có vai trò đặc biệt:
ngăn xếp phần mềm con trỏ thông thường sử dụng R13 như một Stack Pointer (SP). R13 được sử dụng bởi các PUSH và POP
hướng dẫn trong các biến thể T, và các chỉ dẫn SRS và Viễn Đông của Nga từ ARMv6.
Liên kết đăng ký Đăng ký 14 là các liên kết Register (LR). Sổ này giữ địa chỉ của các tiếp theo
hướng dẫn sau khi một chi nhánh và Link (BL hoặc BLX) hướng dẫn, mà là hướng dẫn
sử dụng để thực hiện cuộc gọi chương trình con. Nó cũng được sử dụng cho thông tin địa chỉ trở về nhập
vào chế độ ngoại lệ. Tại mọi thời điểm khác, R14 có thể được sử dụng như là một mục đích chung
đăng ký.
Chương trình truy cập Đăng ký 15 là bộ đếm chương trình (PC). Nó có thể được sử dụng trong hầu hết các lệnh như
một con trỏ trỏ tới các hướng dẫn trong đó là hai hướng dẫn sau khi chỉ lệnh được
thực thi. Trong trạng thái ARM, tất cả các lệnh ARM dài bốn byte (một 32-bit word)
và luôn được xếp trên một ranh giới từ. Điều này có nghĩa rằng hai bit dưới cùng của
máy tính là luôn bằng không, và do đó các máy tính chỉ chứa 30 bit không đổi.
Hai quốc gia xử lý khác được hỗ trợ bởi một số phiên bản của kiến trúc.
Bang Thumb® được hỗ trợ trên các biến thể T, và Jazelle ® nhà nước về J biến thể. Các máy tính có thể
được nữa vòng trái đất (16-bit) và byte phù hợp tương ứng ở các nước này.
The 13 thanh ghi còn lại không có mục đích phần cứng đặc biệt. Sử dụng của họ được xác định hoàn toàn bằng phần mềm.
Để biết thêm chi tiết về đăng ký, hãy tham khảo Đăng ký trên trang A2-4.
đang được dịch, vui lòng đợi..