TAILIEUCHUNG - Lecture Computer organization and assembly language - Lecture 15: STACK Related Instructions

In this lecture, students will be able to understand: STACK Operations, Runtime Stack, PUSH Operation, POP Operation, PUSH and POP Instructions, Using PUSH and POP, Related Instructions, PUSH and POP Instructions, Using PUSH and POP, Related Instructions. | CSC 221 Computer Organization and Assembly Language Lecture 15: STACK Related Instructions Lecture 14: Review Instruction Execution in Assembly Assembly Language Examples: Control Flow JMP Instruction LOOP Instruction LOOP Example Summing an Integer Array Lecture Outline STACK Operations Runtime Stack PUSH Operation POP Operation PUSH and POP Instructions Using PUSH and POP Related Instructions Runtime Stack Imagine a stack of Plates . . . Plates are only added/removed to/from the top LIFO (Last In First Out) structure 10 9 8 7 6 5 4 3 2 1 Top Bottom Runtime Stack Managed by the CPU, using two registers SS (stack segment) ESP (stack pointer) * * SP in Real-address mode 00000006 00001000 00000FFC 00000FF8 00000FF4 00000FF0 Memory Stack ESP PUSH Operation (1 of 3) A 32-bit push operation decrements the stack pointer by 4 and copies a value into the location pointed to by the stack pointer. 00000006 00001000 00000FFC 00000FF8 00000FF4 00000FF0 Memory Stack ESP 00000006 000000A5 00001000

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.