Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Tài liệu HOT
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
0
Trang chủ
Công Nghệ Thông Tin
Phần cứng
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 9 - Yale N. Patt, Sanjay J. Patel
TAILIEUCHUNG - Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 9 - Yale N. Patt, Sanjay J. Patel
Chapter 9 - TRAP routines. This chapter presents the following content: Privileged instructions, TRAP routines, subroutines, the complete mechanism, TRAP routines for handling I/O, TRAP routine for halting the computer, saving and restoring registers, the call/return mechanism, | Chapter 9 TRAP Routines Subroutines Privileged Instructions TRAP Routines Subroutines Used for Frequently executed code segments: written only once. Hides the implementation details. Passing of parameters and return values, in registers or memory. Is called from within a program; control is returned to the same point it was called from. Can be either Procedures, or Functions 9 - Jump to Sub - 1: JSR/JMP JSR/JMP: jump subroutine (direct) JSR: IR[11] = 1, and R7 (PC) . PC is saved in R7 JMP: IR[11] = 0, PC is not saved. PC PC[15:9] @ IR[8:0] 0 0 0 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 JSR L x 0 0 pageoffset9 9 - Jump to Sub - 2: JSRR/JMPR JSRR/JMPR: jump subroutine (base + offset) JSRR: IR[11] = 1, and R7 (PC) . PC is saved in R7 JMPR: IR[11] = 0, PC is not saved. PC (BaseReg) + Zext(IR[5:0]) 0 0 0 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 JSR L x 0 0 x x x index6 BaseReg 9 - Privileged Instructions There are several instructions that are best executed by a supervisor program (OS) rather than a user program: IO instructions Loading of memory mapping registers Resetting the clock Halt . instructions where one program can affect the behavior of another. Hardware enforces two modes of operation User Mode Privileged Mode (aka. supervisor, kernel, monitor mode) Only the supervisor program can execute privileged instructions. 9 - TRAP Instructions TRAP: A special instruction A subroutine call used to invoke a specific supervisor routine. It switches the execution to privileged mode, and reverts back to user mode when the routine completes. PC Mem[Zext(IR[7:0])] RET – return instruction Return the execution to the last calling point. PC (R7) 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 trapvector8 TRAP 9 - TRAP Example = x04A0 x300B R7 Service routine Address x300A System Control Block Or Interrupt Vector Table In LC-2 8 bits specify one of 256 locations (x0000 to x00FF) The location contains
Nhật Tiến
90
15
ppt
Báo lỗi
Trùng lắp nội dung
Văn hóa đồi trụy
Phản động
Bản quyền
File lỗi
Khác
Upload
Tải xuống
đang nạp các trang xem trước
Bấm vào đây để xem trước nội dung
Tải xuống
TÀI LIỆU LIÊN QUAN
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 1 - Yale N. Patt, Sanjay J. Patel
13
84
2
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 2 - Yale N. Patt, Sanjay J. Patel
17
72
3
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 3 - Yale N. Patt, Sanjay J. Patel
33
105
3
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 4 - Yale N. Patt, Sanjay J. Patel
14
88
2
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 5 - Yale N. Patt, Sanjay J. Patel
36
84
2
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 7 - Yale N. Patt, Sanjay J. Patel
11
93
0
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 8 - Yale N. Patt, Sanjay J. Patel
13
73
0
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 9 - Yale N. Patt, Sanjay J. Patel
15
78
0
Lecture Introduction to computing systems (from bits & gates to C & beyond): Chapter 10 - Yale N. Patt, Sanjay J. Patel
10
66
0
Lecture Introduction to computing systems: Chapter 1 - Yale N. Patt, Sanjay J. Patel
16
92
0
TÀI LIỆU XEM NHIỀU
Một Case Về Hematology (1)
8
461886
55
Giới thiệu :Lập trình mã nguồn mở
14
22719
61
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10905
530
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10083
447
Phân tích và làm rõ ý kiến sau: “Bài thơ Tự tình II vừa nói lên bi kịch duyên phận vừa cho thấy khát vọng sống, khát vọng hạnh phúc của Hồ Xuân Hương”
3
9540
104
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8301
1127
Tiểu luận: Nội dung tư tưởng Hồ Chí Minh về đạo đức
16
8248
423
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7867
2220
Đề tài: Dự án kinh doanh thời trang quần áo nữ
17
6711
253
Vật lý hạt cơ bản (1)
29
5793
88
TỪ KHÓA LIÊN QUAN
Phần cứng
Computing systems
Introduction to computing systems
Computing machines
Computer organization
TRAP routines
Privileged instructions
General purpose computers
Data types
Decimal numbers
Digital logic structures
Electronic ones
The von Neumann Model
Instruction cycle
Operate instructions
Data movement instructions
LC 2 assembly language
Assembly language instructions
Device registers
I O basics
Stack data structure
Interrupt I O
LC 3 instruction set architecture
LC 3 data path
Problem solving
Structured programming
Machine architecture
Unsigned integers
Von Neumann machine
Instruction set architecture
TÀI LIỆU MỚI ĐĂNG
CẤU TẠO HẠT NHÂN NGUYÊN TỬ-ĐỘ HỤT KHỐI-NĂNG LƯỢNG LIÊN KẾT-LK RIÊNG
12
270
0
01-05-2024
beginning Ubuntu Linux phần 1
34
213
1
01-05-2024
Management and Services Part 1
10
159
0
01-05-2024
MySQL Basics for Visual Learners PHẦN 9
15
185
0
01-05-2024
MySQL Database Usage & Administration PHẦN 7
37
158
0
01-05-2024
MySQL Database Usage & Administration PHẦN 9
37
143
0
01-05-2024
Lịch sử Đội TNTP Hồ Chí Minh - CHƯƠNG III VÂNG LỜI BÁC DẠY, LÀM NGHÌN VIỆC TỐT, CHỐNG MỸ, CỨU NƯỚC, THIẾU NIÊN SĂN SÀNG
45
137
0
01-05-2024
Đóng mới oto 8 chỗ ngồi part 9
10
118
0
01-05-2024
Khurana et al. Journal of Orthopaedic Surgery and Research 2010, 5:23
7
136
0
01-05-2024
Data Structures and Algorithms - Chapter 8: Heaps
41
122
0
01-05-2024
TÀI LIỆU HOT
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7867
2220
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
5790
1388
Ebook Chào con ba mẹ đã sẵn sàng
112
3772
1233
Ebook Tuyển tập đề bài và bài văn nghị luận xã hội: Phần 1
62
5333
1136
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8301
1127
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3518
644
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10905
530
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3694
525
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4071
516
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4136
480
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.