TAILIEUCHUNG - Lecture Computer organization and assembly language: Chapter 7 - Dr. Safdar Hussain Bouk
Lecture 07: Addressing Modes. In this chapter, the following content will be discussed: I/O basics; input from the keyboard; output to the monitor; a more sophisticated input routine; interrupt-driven I/O; implementation of memory-mapped I/O, revisited. | CSC 221 Computer Organization and Assembly Language Lecture 07: Addressing Modes CHAPTER 03 The Intel Microprocessors: 8086/8088, 80186/80188, 80286, 80386, 80486 Pentium, Pentium Pro Processor, Pentium II, Pentium, 4, and Core2 with 64-bit Extensions Architecture, Programming, and Interfacing, Eighth Edition Barry B. Brey REFERENCE: opcode field. designed to hold the instruction, or opcode Right of the opcode field is the operand field. contains information used by the opcode the MOV AL,BL instruction has the opcode MOV and operands AL and BL The comment field, the final field, contains a comment about the instruction(s). comments always begin with a semicolon (;) Lecture 06: Review Opcode Operand(s) and/or Address(es) Lecture 06: Review (cont.) Instruction Cycle State Diagram Addresses: immediate, direct, indirect, stack Numbers: Integer or fixed point (binary, twos complement), Floating point (sign, significand, exponent), (packed) decimal (246 = 0000 0010 0100 0110) Characters: ASCII (128 printable and control characters + bit for error detection) Logical Data bits or flags, . Boolean 0 and 1 Data Structures Types of Operands Lecture 06: Review (cont.) 14 Types of Operations Data Transfer Arithmetic Logical Conversion I/O System Control Transfer of Control Lecture 06: Review (cont.) 18 Each statement in an assembly language program consists of four parts or fields. The leftmost field is called the label. used to store a symbolic name for the memory location it represents All labels must begin with a letter or one of the following special characters: @, $, -, or ?. a label may any length from 1 to 35 characters The label appears in a program to identify the name of a memory location for storing data and for other purposes. Lecture 06: Extension (cont.) Opcode Operand(s) and/or Address(es) label ; comments Lecture Outline Operation of each data-addressing mode. The Data-addressing modes to form assembly language statements. The operation of each program .
đang nạp các trang xem trước