Click here to load reader

和春技術學院資訊管理系 九十三學年度第一學期 系統程式

  • Upload
    rowdy

  • View
    59

  • Download
    0

Embed Size (px)

DESCRIPTION

和春技術學院資訊管理系 九十三學年度第一學期 系統程式. 教學投影片 講師:毛立仁. 第九章 組合語言. 9-1 組合語言特性 9-2 IBM 360/370 組合語言 9-3 定址摸式. 9-1 組合語言 (Assembly Language) 特性. 早期的系統程式皆是用組合語言 (Assembly Language) 所撰寫的,然而,現今的系統程式大多可由高階語言 (High Level Language) 來撰寫 (C 、 Java 、 Pascal 、 Basic) 。 - PowerPoint PPT Presentation

Citation preview

  • 9-1 9-2 IBM 360/370 9-3

  • 9-1 (Assembly Language) (Assembly Language)(High Level Language)(CJavaPascalBasic) (Machine Language) (Assembly Language)(High Level Language):

  • (Compile)(Interpret)(Assemble)(Compiler)High Level Language Machine Language

    (Interpreter)

    (Assembler)

  • a. (Mnemonic)b. (Symbol)c. (Machine Language)d. a. (Assembler)(Source Program) (Object Code)

  • a. b. a. b. (Machine Dependent) c. (Non-Portable)

  • (1) (Machine Operation)(2) (Pseudo Operation)

  • 9-2 IBM 360/370 IBM 360/370

  • (1) USINGUSING HEAD + 2,15 15 HEAD + 2(2) STARTPROG START PROG(3) END

  • (4) BALR 0 BALR 15,0 15 0 (5) BRBR 14

  • (6) LTORG END (7) DCBeta DC F'10' Bata 10

  • (8) DS(9) EQU EQU DC

  • (1) (Operation) CPU CPU (2) (Operand) CPU

  • (1)(Memory Referenced Instruction)(2)(Register Referenced Instruction) 5 CLR 5

  • (3)(Register-Register Instruction) 5 2 5 SUB 5,2(4)(I/O Instruction) (5)(Macro Instruction)

  • 9-3 (Addressing Mode) 1.(Immediate Addressing Mode)

  • 2. (Direct Addressing Mode) (Effective Address) MOV AX[4567]

  • 3.(Indirect Addressing Mode)

  • 4.(Index Addressing Mode) (Index Register)

  • 5. (Base Addressing Mode)(Base Register)

  • 6. (Relative Addressing Mode)(Program Counter)

  • 7. (Register Addressing Mode) MOV AXR7

  • 8.(Register Indirect Addressing Mode) MOV AX[R7]

  • 9. (Implied Addressing Mode) CMA 1