Lecture Computer organization and assembly language - Lecture 08: Assembly Language Fundamentals

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, | CSC 221 Computer Organization and Assembly Language Lecture 08: Assembly Language Fundamentals Reference Most of the Slides are taken from Presentation: Chapter 3 Assembly Language for Intel-Based Computers, 4th Edition Kip R. Irvine (c) Pearson Education, 2002. All rights reserved. You may modify and copy this slide show for your personal use, or for use in the classroom, as long as this copyright statement, the author's name, and the title are not changed. Lecture 07: Review The MOV instruction copies the contents of the source operand into the destination operand. The source never changes for any instruction. Register addressing specifies any 8-bit register (AH, AL, BH, BL, CH, CL, DH, or DL) or any 16-bit register (AX, BX, CX, DX, SP, BP, SI, or DI). Opcode Operand(s) and/or Address(es) label ; Comments Lecture 07: Review (cont.) The segment registers (CS, DS, ES, or SS) are also addressable for moving data between a segment register and a 16-bit register/memory location or for . | CSC 221 Computer Organization and Assembly Language Lecture 08: Assembly Language Fundamentals Reference Most of the Slides are taken from Presentation: Chapter 3 Assembly Language for Intel-Based Computers, 4th Edition Kip R. Irvine (c) Pearson Education, 2002. All rights reserved. You may modify and copy this slide show for your personal use, or for use in the classroom, as long as this copyright statement, the author's name, and the title are not changed. Lecture 07: Review The MOV instruction copies the contents of the source operand into the destination operand. The source never changes for any instruction. Register addressing specifies any 8-bit register (AH, AL, BH, BL, CH, CL, DH, or DL) or any 16-bit register (AX, BX, CX, DX, SP, BP, SI, or DI). Opcode Operand(s) and/or Address(es) label ; Comments Lecture 07: Review (cont.) The segment registers (CS, DS, ES, or SS) are also addressable for moving data between a segment register and a 16-bit register/memory location or for PUSH and POP. In the 80386 through the Core2 microprocessors, the extended registers also are used for register addressing; they consist of EAX, EBX, ECX, EDX, ESP, EBP, EDI, and ESI. Lecture 07: Review (cont.) Direct addressing occurs in two forms in the microprocessor: direct addressing and displacement addressing. In the 64-bit mode, the registers are RAX, RBX, RCX, RDX, RSP, RBP, RDI, RSI, and R8 through R15. The MOV immediate instruction transfers the byte or word that immediately follows the opcode into a register or a memory location. Immediate addressing manipulates constant data in a program. Lecture Outline Basic Elements of Assembly Language Example: Adding and Subtracting Integers Defining Data Configuring Microsoft Visual C++ for Assembly Programming Basic Elements of Assembly Language Integer constants Integer expressions Character and string constants Reserved words and identifiers Directives and instructions Labels Mnemonics and Operands Comments Integer Constants .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
15    91    2    29-04-2024
Đã 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.