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
Cơ sở dữ liệu
Lecture Computer organization and assembly language: Chapter 16 - Dr. Safdar Hussain Bouk
TAILIEUCHUNG - Lecture Computer organization and assembly language: Chapter 16 - Dr. Safdar Hussain Bouk
In this chapter, we discuss various mechanisms to ensure the orderly execution of cooperating processes that share a logical address space, so that data consistency is maintained. | CSC 221 Computer Organization and Assembly Language Lecture 16: Procedures Lecture 15: Review Elements are only added/removed to/from the top. LIFO (Last In First Out) structure. Managed by the CPU, using two registers: SS:ESP PUSH and POP Instructions PUSH syntax: PUSH r/m16 PUSH r/m32 PUSH imm32 POP syntax: POP r/m16 POP r/m32 10 9 8 7 6 5 4 3 2 1 Top Bottom Lecture 15: Review (cont.) PUSHFD and POPFD push and pop the EFLAGS register PUSHAD pushes the 32-bit general-purpose registers on the stack order: EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI POPAD pops the same registers off the stack in reverse order PUSHA and POPA do the same for 16-bit registers Lecture Outline Defining and Using PROCEDURES Creating Procedures Documenting Procedures Example: SumOf Procedure CALL and RET Instructions Nested Procedure Calls Local and Global Labels Procedure Parameters Flowchart Symbols USES Operator Creating Procedures Large problems can be divided into smaller tasks to make them more manageable. A procedure is the Assembly equivalent of a Java or C++ function. Following is an assembly language procedure named sample: sample PROC . . . ret sample ENDP Documenting Procedures Suggested documentation for each procedure: A description of all tasks accomplished by the procedure. Receives: A list of input parameters; state their usage and requirements. Returns: A description of values returned by the procedure. Requires: Optional list of requirements called preconditions that must be satisfied before the procedure is called. Example: SumOf Procedure ;--------------------------------------------------------- SumOf PROC ; ; Calculates and returns the sum of three 32-bit integers. ; Receives: EAX, EBX, ECX, the three integers. May be ; signed or unsigned. ; Returns: EAX = sum, and the status flags (Carry, ; Overflow, etc.) are changed. ; Requires: nothing ;--------------------------------------------------------- add eax,ebx add eax,ecx ret SumOf ENDP CALL and RET Instructions The CALL
Ngọc Linh
87
21
pptx
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
Không thể tạo bản xem trước, hãy bấm tải xuống
Tải xuống
TÀI LIỆU LIÊN QUAN
Ebook Computer organization and design: The hardware software interface (RISC-V edition) - Part 1
483
2
1
Ebook Computer organization and design: The hardware software interface (ARM® edition) - Part 1
505
2
1
Bài giảng Computer Organization and Architecture: Chapter 18
62
110
0
Lecture note Computer Organization - Appendix A: Projects for teaching computer organization and architecture
241
85
0
Bài giảng Computer Organization and Architecture: Chapter 2
53
127
0
Bài giảng Computer Organization and Architecture: Chapter 9
41
117
1
Lecture Computer organization and assembly language: Chapter 2 - Dr. Safdar Hussain Bouk
80
69
0
Lecture Computer organization and assembly language: Chapter 3 - Dr. Safdar Hussain Bouk
48
81
0
Lecture Computer organization and assembly language: Chapter 4 - Dr. Safdar Hussain Bouk
47
75
0
Lecture Computer organization and assembly language: Chapter 5 - Dr. Safdar Hussain Bouk
49
70
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
22714
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
10903
530
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10080
446
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
9539
104
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8300
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
6710
253
Vật lý hạt cơ bản (1)
29
5792
88
TỪ KHÓA LIÊN QUAN
Cơ sở dữ liệu
Computer organization
Assembly language
Tổ chức máy tính
Lecture Computer organization
Assembly language programming
Lập trình hợp ngữ
Computer System
Ebook Computer organization
Hardware software interface
Computer design
Language of the computer
Computer abstractions
Arithmetic for computers
Computer organization and design
Ebook Computer organization and design
Computer hardware
Bài giảng Computer Organization and Architecture
Computer Organization and Architecture
Xử lý song song
Multiple Processor Organization
Tìm hiểu Single Instruction
tìm hiểu xử lý song song
Cấu trúc máy tính
Hierarchical system
Parallel organization
Interactive simulations
Assembly language projects
Computer Evolution and Performance
Hiệu suất máy tính
Thiết bị điều khiển
ALU operating on binary data
Máy tính số học
Tìm hiểu Computer Arithmetic
Arithmetic & Logic Unit
Integer Representation
TÀI LIỆU MỚI ĐĂNG
Giáo án mầm non chương trình đổi mới: Gia đình vui nhộn
4
312
1
30-04-2024
Đánh giá hao mòn và độ tin cậy của chi tiết và kết cấu trên đầu máy diezel part 3
12
314
0
30-04-2024
Báo cáo khoa học: Loss of kinase activity in Mycobacterium tuberculosis multidomain protein Rv1364c
14
236
0
30-04-2024
Động cơ đốt trong và máy kéo công nghiêp tập 1 part 7
23
260
0
30-04-2024
Động cơ đốt trong và máy kéo công nghiêp tập 2 part 8
32
262
0
30-04-2024
Trading Strategies Profit Making Techniques For Stock_8
23
176
1
30-04-2024
Anh văn bằng C-124
8
176
0
30-04-2024
Magnetic Bearings Theory and Applications phần 2
14
173
0
30-04-2024
TƯƠNG QUAN GIỮA MÔ HỌC, GIẢI PHẪU VÀ HÌNH ẢNH CỦA CÁC KHỐI U PHẦN PHỤ
3
168
0
30-04-2024
Báo cáo nghiên cứu khoa học " KẾT QUẢ NGHIÊN CỨU BƯỚC ĐẦU VỀ THIÊN ĐỊCH CHÂN KHỚP TRÊN CÂY THANH TRÀ Ở THỪA THIÊN HUẾ "
7
175
0
30-04-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
5786
1387
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
5332
1136
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8300
1127
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3517
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
10903
530
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3693
525
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4070
516
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4135
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.