计算机组成原理 第二章 指令系统 中科大 11 系 李曦

Size: px
Start display at page:

Download "计算机组成原理 第二章 指令系统 中科大 11 系 李曦"

Transcription

1 计算机组成原理 第二章 指令系统 中科大 11 系 李曦

2 Computer Architecture & Organization

3 Instruction-Set Processor Design Architecture (ISA) programmer/compiler view functional appearance to its immediate user/system programmer Opcodes, addressing modes, architected registers, IEEE floating point Implementation (µarchitecture) processor designer view logical structure or organization that performs the architecture Pipelining, functional units, caches, physical registers Realization (chip) chip/system designer view physical structure that embodies the implementation Gates, cells, transistors, wires 机器字长 = 通用寄存器 = ALU =or 数据总线宽度

4 概要 程序控制 程序 = 顺序执行的指令流 指令系统 : 机器指令的集合 汇编语言 (Assemble Language)/ 机器语言 Instruction Set Architecture(ISA) CISC RISC VLIW 处理器 C 编译器 OS 本章的内容 指令功能 指令格式与编码 寻址方式 指令系统特征 汇编程序设计 X86,MIPS llxx@ustc.edu.cn 4/41

5 计算机基本行为 : 功能与过程 Data Movement Data Storage Processing from/to storage Processing from Storage to I/O

6 操作分类 数据传递 (data movement) 访存 :mov,load,store I/O:in,out 算逻运算 (arithmetic & logical) add,sub,and,not,or,xor,dec,inc,cmp monadic & dyadic operations 移位操作 monadic operations:shl,shr,srl,srr 转移控制 (tranfer of contral) comparisons & conditional branches:bnz,beq,jmp procedure call:call,ret,int,iret 系统指令 HLT,nop,wait,sti,cli,lock 晶振 R S Q 6/41 CLK

7 操作数 (opr) 操作数类型 地址 : 无符号整数, 计算 offset 等 数据 : 定点数 ( 有符号 / 无符号 ) 浮点数 逻辑值 字符 :ASCII 汉字内码 存放位置 主存 寄存器 I/O 端口 llxx@ustc.edu.cn 7/41

8 指令字格式 Machine Instruction Layout von Neumann: 指令由操作码和地址码构成 操作码 : 操作的性质 地址码 : 指令和操作数 (operand) 的存储位置 操作码域 (op) 地址码域 (addr) 指令字长度固定 vs. 可变 固定 : 规则, 浪费空间 操作码长度固定 vs. 可变 固定 : 译码简单, 指令条数有限,RISC(MIPS, ARM) 可变 : 指令条数和格式按需调整,CISC(x86) 扩展操作码技术 : 调整 op 与 addr 域 如果指令字长固定, 则操作码长度增加, 地址码长度缩短 llxx@ustc.edu.cn 8/41

9 地址码 指定源操作数 目的操作数 下一条指令地址 地址 : 寄存器 主存 I/O 端口 地址码域格式 4 地址指令 :op rs1, rs2, rd, ni 3 地址指令 :op rs1, rs2, rd; ni 在 PC 中 2 地址指令 :op rs1, rs2; rd=rs1 or ACC 1 地址指令 :op rs2; rs1=acc,rd=acc 0 地址指令 :op; 堆栈操作 llxx@ustc.edu.cn 9/41

10 寻址方式 寻址方式 : 确定指令和操作数的存储地址的方式 指令寻址 : 利用 PC 顺序执行 : 每执行一条指令,PC 自动 1 跳转 : 更新 PC, 转移到目的地址执行 操作数寻址 指令中给出 形式地址 有效地址 : 操作数在内存中的物理地址 EA= 寻址方式 + 形式地址 操作码 形式地址 llxx@ustc.edu.cn 10/41

11 操作数寻址方式 常见约 10 种 立即寻址 (a) 直接寻址 (b) 间接寻址 (c) 寄存器寻址 (d) 寄存器间接寻址 (e) 基址寻址 (f) 相对寻址 (f) 堆栈寻址 (g) 变址寻址 (d) 隐含寻址 11/41

12 寻址方式 (addressing mode) 立即寻址 (Immediate addressing) 地址域中即为操作数 表示为 :op #xxxx 立即数的范围与指令字长有关 存储于内存中的指令段 直接寻址 (direct addressing) 有效地址 = 形式地址 形式地址位数确定寻址范围 op xxxx 隐含寻址 (Implicitly) 操作数在缺省的寄存器或 ACC 中 llxx@ustc.edu.cn 12/41

13 300H 400H 寻址方式 (con t) 间接寻址 ( 间址寻址, Indirect ) 形式地址中给出有效地址的存储位置 表示为 :op [xxxx] 寻址范围比直接寻址大 可以 多次间址 寄存器寻址 (Register Direct) 形式地址为某寄存器名 ( 编号 ), 该寄存器中存放操作数 op %r 寄存器间接寻址 (Register Indirect) 寄存器中为操作数的地址 表示为 :op [%r] 400H 0a0bH llxx@ustc.edu.cn 13/41

14 寻址方式 (con t) 基址寻址 (Base or Displacement addressing) op xxxx[br] 以基址寄存器 (BR) 为基准进行寻址 EA= 形式地址 (Disp)+BR 基址寄存器 : 专用 通用 显式 ( 通用寄存器 ) 隐式 ( 专用寄存器 ) 变址寻址 (index) op xxxx[ir] 以变址寄存器 ( IR ) 的值为基准寻址 基址寻址 vs. 变址寻址 基址 :BR 由 OS 赋值, 不变 ; 形式地址可变 变址 :IR 由程序员赋值, 可变 ; 形式地址不变 用途不同 : 基址 段寻址, 变址 数组指针 llxx@ustc.edu.cn 14/41

15 寻址方式 (con t) 相对寻址 (PC-relative addressing) EA=PC+ 形式地址 (disp) 用于转移指令的目标计算 位移量 (Disp): 用补码, 可正可负 堆栈寻址 : 专用于堆栈操作指令 堆栈 : 可以为寄存器堆 (Register File) 或内存中的区域, 由 SP 指示栈顶位置 是一种隐含寻址 llxx@ustc.edu.cn 15/41

16 stack

17 栈操作图示 17/77

18 VAX11/780 机器指令格式与编码 16 位机, 有 16 种寻址方式, 共 303 条指令 16 个寄存器, 指令字不定长 (1~54bytes) 例 : op(4 bits) 方式 (3 bits) Rn(3 bits) 方式 (3 bits) Rn(3 bits) Add R2, R4; R2+R4 -> R4, (8 进制 ) Add [R2], R1; [R2] + R1 -> R1, 寄存器寻址 Add #1000, R1; 1000+R1 -> R1 寄存器间接寻址 llxx@ustc.edu.cn 18/41

19 ISA 分类 指令格式和寻址方式越复杂, 则越灵活高效 硬件设计复杂度 ; 指令系统的兼容性 程序员角度 : programmer/compiler view CISC: 以机器指令实现高级语言功能 RISC: 采用 load/store 体系, 运算基于寄存器 VLIW: 兼容性差, 硬件简单, 低功耗 机器实现角度 : processor designer view stack Accumulator register-mem register-register llxx@ustc.edu.cn 19/41

20 ISA 分类 (Arch prospective) CISC: 硬件换性能! 以机器指令实现高级语言功能 指令字长不一 (x86 从 1byte~6bytes) 寻址方式多 ALU 指令可以访存 RISC: 简化硬件, 做好高频度的事! 设置大量通用寄存器, 运算基于寄存器 为了提高性能, 需要减少访存次数, 因此寄存器寻址性能最高 采用 load/store 体系, 只有 load/store 指令访存 指令字长固定, 格式规则, 种类少, 寻址方式简单 采用 Superscalar Superpipeling 等技术, 提高 IPC VLIW: 硬件简单, 低功耗, 兼容性差 20/41

21 The CISC s eight principles: Instructions are of variable format. There are multiple instructions and addressing modes. Complex instructions take many different cycles. Any instruction can reference memory. There is a single set of registers. No instructions are pipelined. A microprogram is executed for each native instruction. Complexity is in the microprogram and hardware.

22 X86 指令格式 a. JE EIP + displacement JE Condition Displacement b. CALL 8 32 CALL Offset c. MOV EBX, [EDI + 45] MOV d w 8 8 r-m postbyte Displacement d. PUSH ESI 5 3 PUSH Reg e. ADD EAX, # ADD Reg w Immediate f. TEST EDX, # TEST w Postbyte Immediate llxx@ustc.edu.cn 22/41

23 Growth of x86 instruction set over time

24 X86 Instruction Distribution

25 Control Instruction Distribution

26 RISC 的理论基础

27 The RISC s eight principles: Fixed-format instructions. Few instructions and addressing modes. Simple instructions taking one clock cycle. LOAD/STORE architecture to reference memory. Large multiple-register sets. Highly pipelined design. Instructions executed directly by hardware. Complexity handled by the compiler and software.

28 MIPS 指令格式 100 余条指令 (Hennessy 中 33 条 ), 共 32 个通用寄存器 指令格式 : 定长 32 位 R-type:arithmetic instruction I-type:data transfer J-type:branch instruction(conditional & unconditional) Simple(regularity)= Elegant!!! R-type reg-reg I-type reg-mm J-type op(6 bits) rs(5 bits) rt(5 bits) rd(5 bits) shamt(5 bits) funct(6 bits) op(6 bits) rs(5 bits) rt(5 bits) immediate(16 bits) op(6 bits) rs(5 bits) rt(5 bits) addr(16 bits) op(6 bits) rs(5 bits) rt(5 bits) addr(16 bits) op(6 bits) addr(26 bits)

29 MIPS 寻址模式 立即寻址 :I-type 1. Immediate addressing op rs rt Immediate 寄存器寻址 :R-type 2. Register addressing op rs rt rd... funct Registers Register 基址寻址 :I-type 3. Base addressing op rs rt Address Memory Byte PC 相对寻址 :J-type Register + Byte Halfword Word 伪直接寻址 :J-type pseudo-direct addressing 4. PC-relative addressing op rs rt Address PC + Memory Word 26 位形式地址左移 2 位, 与 PC 的高 4 位拼接 5. Pseudodirect addressing op Address PC Memory Word llxx@ustc.edu.cn 29/41

30 RISC-V 指令格式与寻址方式 基本 :R/I/S/U 寻址方式 :4 种

31 RISC-V 示例

32 CISC vs RISC Instructions are of variable format. There are multiple instructions and addressing modes. Complex instructions take many different cycles. Any instruction can reference memory. There is a single set of registers. No instructions are pipelined. A microprogram is executed for each native instruction. Complexity is in the microprogram and hardware. Fixed-format instructions. Few instructions and addressing modes. Simple instructions taking one clock cycle. LOAD/STORE architecture to reference memory. Large multiple-register sets. Highly pipelined design. Instructions executed directly by hardware. Complexity handled by the compiler and software.

33 Cortex-M3/M4 指令集

34 TMS320C64x:VLIW

35 TMS320C64x 指令字

36 ISA Classes (uarch prospective) C = A + B

37 ISA Classes (cont.)

38 Compact Code & Stack Architecture 60 s, 编译技术发挥寄存器的效率很困难, 因此某些设计者完全放弃寄存器, 而采用堆栈执行模型 基于堆栈的操作可以有效的缩短指令字长, 可以减少存储和传输的开销 JAVA 虚拟机即采用堆栈模型 FORTH Stack 在处理器中? 38/41

39 Accumulator Architectures 早期硬件太昂贵, 所以使用的寄存器很少 实际上只有一个用于算术指令的寄存器 被称为 Accumulator, 所以这种结构被称为 Accumulator Architectures 如 EDSAC( ( 第一台存储程序计算机,1949) 采用 memory-based operand-addressing mode 进化 : 采用一些专用寄存器, 如数组指针 堆栈指针 乘除运算寄存器等 如 x86, 称为 extended accumulator arch llxx@ustc.edu.cn 39/41

40 General-Purpose Register Architecture 通用 : 所有寄存器可以用于任何目的 两类 Register-memory Arch 允许一个操作数在内存中 x86:register-memory Load-store or register-register architecture 要求所有操作数都在寄存器中 MIPS:Load-store llxx@ustc.edu.cn 40/41

41 影响早期 ISA 设计的因素 内存小而慢, 能省则省 某个完整系统只需几 K 字节 指令长度不等 执行多个操作的指令 寄存器贵, 少 操作基于存储器 多种寻址方式 编译技术尚未出现 程序是以机器语言或汇编语言设计 当时的看法是硬件比编译器更易设计 为了便于编写程序, 计算机架构师造出越来越复杂的指令, 完成高级程序语言直接表达的功能 进化中的痕迹 :X86 中的串操作指令

42 ISA: A Minimalist Perspective ISA design decisions must take into account: technology machine organization programming languages compiler technology operating systems 最小的计算机系统由哪些部件构成? 最小的 ISA 需要哪几条指令? 需要哪些寻址方式?

43 OISC:the one instruction set computer URISC 体系 :the ultimate reduced instruction set computer 一条 SBN 指令 :substract and branch if negative OISC 的优势 硬件极其简单 程序员有充分的控制权 优化由编译器完成 灵活 其他 指令 都可由该指令构造 意味着用户可自定义指令集 意味着可适用于任何领域 低功耗 应用 : 嵌入式处理器

44 Transport triggered architecture originally called a "move machine 程序直接控制处理器内部的传输总线 uses only the MOVE instruction 计算 : 由 memory-mapped ALU 完成 向功能单元的触发端口写数据将触发功能单元完成计算 故曰 transport triggered 跳转 : 由 memory-mapped PC 完成 适于实现 ASIP 上市产品 :MAXQ 微控制器 适合数模混合应用场景

45 TTA 的典型结构

46 例 :8086 汇编语言程序 MIPS 汇编语言程序

47 外部总8086 内部结构 AH AL BH BL CH CL DH DL SP BP SI DI 通用寄存器 16 位 地址加法器 CS DS SS ES IP 内部暂存器 20 位 16 位 输入 / 输出控制电路 ALU 控制电路 8 位 指令队列缓冲器 线执行部分 标志寄存器 执行部件 (EU) 总线接口部件 (BIU) 47

48 8086 寄存器与堆栈 SS:0000 sp=ffee-> SS:FFFF

49 8086 标志寄存器 : 系统当前状态与控制 SS:0000 sp=ffee-> SS:FFFF

50 例 : 字符输入输出 loop: mov ah,0 ; 键盘功能调用 (int 16h) int 16h ;al 按键的 ASCII 码 mov bx,0 ; 显示功能调用 (int 10h) mov ah,0eh int 10h ; 显示 getk: mov ah,0bh ; 按任意键继续 int 21h or al,al ;al=0? jz getk ;al=0, 没有按键, 继续等待 jmp loop int 3h 1) 计算机系统结构 ;2) 汇编程序组成 ;3) 内存映像 ; 4) 控制转移 ( 顺序,jmp, 过程调用, 中断 );5) 工具

51 程序内存空间布局 代码段 CS 数据段 DS 堆栈段 SS

52 X86 存储管理 : 段式

53 X86 存储管理模式 : 段式 内存空间 :20 位 存储模型 段基址寄存器 16 位 (64K) 数据段 (ds) 代码段 (cs) 堆栈段 (ss) 扩展段 (es) 16 位基址 :16 位偏移

54 Debug: 调试器,8086 虚拟机 常用命令 :a,d,e,g,r 存储模型 :CS=DS=SS=ES CS 向下生长 SS 向上生长, 空递减堆栈 空栈 :sp=ffee SS:0000 sp=ffee-> SS:FFFF

55 x86 汇编语言程序设计 指令 : 机器指令助记符 伪指令 DW 定义字 (2 字节 ) PROC 定义过程 ENDP 过程结束 SEGMENT 定义段 ASSUME 建立段寄存器寻址 ENDS 段结束 END 程序结束 系统调用 (system calls):bios,dos 显示 键盘 磁盘 文件 打印机 时间

56

57 例 : directives : 内存地址指针 Labels : 程序地址标号 names : 段名, 变量名

58 过程调用 procedure calling 步骤 Caller 将参数放在子过程可以访问的位置 : 寄存器 / 栈 / 内存 Call 子过程 Callee 保存断点 (npc) 将控制交给子过程 : 使 PC 指向子过程入口 保存现场 计算, 并将结果放在 caller 可以访问的位置 恢复现场 子过程 Return 将控制交回调用程序 :PC = npc 控制转移指令 方式一 :call/return 方式二 :jmp llxx@ustc.edu.cn 调用程序 caller ( 当前程序 ) 子程序 callee 58/41

59 单级 call/return: 链接寄存器 LR

60 Use of Stack to Implement Nested Procedures

61 x86 运行时栈的组织与使用 SP 指向 processor stack BP 辅助堆栈操作 约定 子程序允许使用 AX/BX/CX 返回值在 AX 或 DX:AX 中 Caller call 指令 压参 保存断点 : 将 npc 压栈 跳转 : 子程序地址入 PC Callee: 保存所用的通用寄存器 恢复所保存的通用寄存器 return 指令

62 C 调用约定 (8086): 例 int add(int a, int b)// int 为 2 字节 { /* int c; char d; */ return a+b; } 0C1C: PUSH BP 0C1C:0219 8BEC MOV BP,SP 0C1C:021B 8B4604 MOV AX,[BP+04] 0C1C:021E ADD AX,[BP+06] 0C1C:0221 EB00 JMP C1C:0223 5D POP BP 0C1C:0224 C3 RET 1. 按从右到左的顺序将参数入栈 : 先 b 后 a 2. 返回地址入栈 :2 字节 (16 位系统 ) 3. 进入被调函数 4. BP 入栈 ; 将 SP 拷贝到 BP 5. 局部变量 ( 自动变量 ) 从后到前入栈 : 先 d 后 c( 本例无!!) 6. 返回值占 2 字节则通过 AX 返回 ; 返回值占 4 字节通过 DX:AX 返回 7. 将 BP 拷贝到 SP 8. 弹出入口时保存的 BP 值到 BP 9. 返回调用者 10. 清调用时压栈的参数

63 高级语言与汇编语言接口 ABI Calling Conventions 寄存器指派 参数传递 返回值传递 堆栈维护方式 子过程前后缀代码规则 需保存 / 恢复的现场 出入栈顺序 c 语言标准未定义 各编译器 / 处理器 /OS 不同 使用 OS 的服务 APIs/syscalls

64 System calls Why Certain operations require specialized knowledge and protection( 多任务共享 ) Not every programmer knows (or wants to know) this level of detail Usually not generated by HLLs,but in assembly language functions What A special machine instruction that causes an interrupt 产生状态切换 (protection): 需保存 PSW various names: syscall, trap, svc, soft interrupt x86 系统调用 (system calls):bios,dos 显示 键盘 磁盘 文件 打印机 时间

65 系统调用 其中保存参数到寄存器, 赋值 EAX lib\libc.so.6 和 usr\include arch\x86\kernel\entry_32.s kernel\sys.c 用户态 内核态 xyz() xyz(){ int 0x80 } IDT system_call: sys_xyz() ret_from_sys_call: iret sys_call_table sys_xyz() { } 在应用程序 在 libc 标准库 系统调用 系统调用 调用中的 中的封装例程 处理程序 服务例程 系统调用

66 System call flow of control 1. User program invokes system call. 2. Operating system code performs operation. 3. Returns control to user program.

67 APIs vs. syscalls?

68 IBM PC 的 BIOS 调用及 DOS 功能调用 向显示器输出字符 ⒈ 字符的输出 ⒉ 字符串的输出 从键盘输入数据 1. 字符的输入 2. 字符串的输入 3. 按键的判断 磁盘输入 / 输出数据 1. 文件读 2. 文件写 在内存的 0FE000H 开始的 8KB ROM 中存放着基本输入输出系统 BIOS(Basic I/O System) 21H 号中断是 DOS 提供给用户的用于调用系统功能的中断, 它有近百个功能供用户选择使用, 主要包括设备管理 目录管理和文件管理三个方面的功能 汇编语言程序 裸机

69 例 : 字符输入输出 loop: mov ah,0 ; 键盘功能调用 (int 16h) int 16h ;al 按键的 ASCII 码 mov bx,0 ; 显示功能调用 (int 10h) mov ah,0eh int 10h ; 显示 getk: mov ah,0bh ; 按任意键继续 int 21h or al,al ;al=0? jz getk ;al=0, 没有按键, 继续等待 jmp loop int 3h Debug 命令 :a,d,e,g,r

70 MIPS 汇编示例

71 Policy of Use Conventions for registers $26..$27:?

72 stack frame: 活动记录 活动记录 Q 活动记录 P

73 MIPS 过程调用 for procedure calling $a0 $a3: four argument registers in which to pass parameters $v0 $v1: two value registers in which to return values $ra: one return address register to return to the point of origin jal: jump-and-link, call jr: jump register, return

74 可执行程序生成与执行

75 High Level to Assembly High Level Lang (C, C++, Java, etc.) Statements Variables Operators Methods, functions, procedures Assembly Language Instructions Registers Memory Data Representation Number Systems

76 Program Development Process Library C File C File Asm. File Binary File Compiler Binary File Linker Exec. File Implementation Phase Assembler Binary File Debugger Profiler Verification Phase Implementation Phase editor Compilers Cross compiler Runs on one processor, but generates code for another Assemblers Linkers Verification Phase Debuggers Profilers 76/52

77 Symbol Table directives : 内存地址指针 Labels : 程序地址标号 names : 段名, 变量名

78 The Assembly Process Assembler translates source file to object code(common object file format, COFF) Recognizes mnemonics for OP codes Interprets addressing modes for operands Recognizes directives that define constants and allocate space in memory for data Labels and names placed in symbol table 关键问题 :Consider forward branch to label in program Offset cannot be found without target address Let assembler make two passes over program 1 st pass: generate all machine instructions, and enter labels/addresses into symbol table Some instructions incomplete but sizes known 2 nd pass: calculate unknown branch offsets using address information in symbol table

79 The Linker Combines object files into object program Constructs map of full program in memory using length information in each object file Map determines addresses of all names Instructions referring to external names are finalized with addresses determined by map Libraries:Subroutines includes name information to aid in resolving references from calling program

80 Linking and Locating

81 ELF 格式目标文件结构 the ELF specification ELF header tell the offsets and sizes of other sections Each section then describes its own size and attributes symbol tables, string tables, relocation information, and dynamic linking information

82 Loading/Executing Object Programs Loader invoked when user types command or clicks on icon in graphical user interface Object file has information on starting location in memory and length of program Loader transfers object program from disk to memory and branches to starting address At program termination, loader recovers space in memory and awaits next command

83

84 ET: 程序执行时间 执行代码所花费的处理器时间 取决于程序的结构 目标处理器 执行环境 分支路径 循环控制参数 数据存储位置 ILP Cache 中断 不考虑上下文切换 见 CSAPP 第九章 测量程序执行时间

85 小结 作业 : 2.10,2.13, 思考 ( 选一 ) CPU 的 ISA 要定义哪些内容? 见 Yale Patt 附录 A 8086 为什么要采用段式内存管理模式? Windows 系统中可执行程序的格式? 实验报告 : 基于 x86 或 MIPS 汇编, 设计一个冒泡排序程序, 并用 Debug 工具调试执行 测量冒泡排序程序的执行时间

86 Bubble sort (trace)

87 87/41

Computer Architecture & Organization

Computer Architecture & Organization 计算机组成原理 第二章 指令系统 中科大 11 系李曦 Computer Architecture & Organization Instruction-Set Processor Design Architecture (ISA) programmer/compiler view functional appearance to its immediate user/system programmer

More information

untitled

untitled 8086/8088 CIP /. 2004.8 ISBN 7-03-014239-X.... TP313 CIP 2004 086019 16 100717 http://www.sciencep.com * 2004 8 2004 8 1 5 500 787 1092 1/16 16 1/2 391 000 1 2 ii 1 2 CAI CAI 3 To the teacher To the student

More information

Computer Architecture

Computer Architecture ECE 3120 Computer Systems Assembly Programming Manjeera Jeedigunta http://blogs.cae.tntech.edu/msjeedigun21 Email: msjeedigun21@tntech.edu Tel: 931-372-6181, Prescott Hall 120 Prev: Basic computer concepts

More information

2/80 2

2/80 2 2/80 2 3/80 3 DSP2400 is a high performance Digital Signal Processor (DSP) designed and developed by author s laboratory. It is designed for multimedia and wireless application. To develop application

More information

投影片 1

投影片 1 2 理 1 2-1 CPU 2-2 CPU 理 2-3 CPU 類 2 什 CPU CPU Central Processing Unit ( 理 ), 理 (Processor), CPU 料 ( 例 ) 邏 ( 例 ),, 若 了 CPU, 3 什 CPU CPU 了, 行, 利 CPU 力 來 行 4 什 CPU 5 2-2-1 CPU CPU 了 (CU, Control Unit) / 邏

More information

第 15 章 程 式 編 写 語 言 15.1 程 式 編 写 語 言 的 角 色 程 式 編 寫 語 言 是 程 式 編 寫 員 與 電 腦 溝 通 的 界 面 語 法 是 一 組 規 則 讓 程 式 編 寫 員 將 字 詞 集 合 起 來 電 腦 是 處 理 位 元 和 字 節 的 機 器, 與

第 15 章 程 式 編 写 語 言 15.1 程 式 編 写 語 言 的 角 色 程 式 編 寫 語 言 是 程 式 編 寫 員 與 電 腦 溝 通 的 界 面 語 法 是 一 組 規 則 讓 程 式 編 寫 員 將 字 詞 集 合 起 來 電 腦 是 處 理 位 元 和 字 節 的 機 器, 與 程 式 編 写 語 言 在 完 成 這 章 後, 你 將 能 夠 了 解 程 式 編 写 語 言 的 功 能 了 解 高 階 語 言 和 低 階 語 言 之 間 的 分 別 知 道 翻 譯 程 式 的 意 義 和 能 夠 把 翻 譯 程 式 分 類 為 : 匯 編 程 式 編 譯 程 式 和 解 譯 程 式 認 識 不 同 翻 譯 程 式 的 優 點 和 缺 點 程 式 是 指 揮 電 腦 的 指

More information

1 CPU

1 CPU 2000 Tel 82316285 82317634 Mail liuxd@buaa.edu.cn 1 CPU 2 CPU 7 72 A B 85 15 3 1/2 M301 2~17 : 3/4 1/2 323 IBM PC 1. 2. 3. 1. 2. 3. 1.1 Hardware Software 1.2 M3 M2 M1 1.2 M3 M1 M2 M2 M1 M1 M1 1.2 M3 M1

More information

幻灯片 1

幻灯片 1 3 8086 Tel:2656809 tjx@csu.edu.cn 2005-9-14 1 2005-9-14 2 8086 8 8086 8086 7 2005-9-14 3 PC 2005-9-14 4 2005-9-14 5 81616 2005-9-14 6 [ ] MOV AX, 3064H AX=3064H 16AX OP 64H 30H 2005-9-14 7 16 AX BX CX

More information

,768 32,767 32K JMP Jnnn (386+) LOOP CALL [Label:] JMP short/near/far address L10: jmp jmp L20: L10 L20

,768 32,767 32K JMP Jnnn (386+) LOOP CALL [Label:] JMP short/near/far address L10: jmp jmp L20: L10 L20 (Jump) (Loop) (Conditional jump) CMP CALL AND SAR/SHR TEST JMP NOT SAL/SHL Jnnn* OR RCR/ROR LOOP XOR RCL/ROL RETn * nnn, JNE JL -128 127-32,768 32,767 32K JMP Jnnn (386+) LOOP CALL [Label:] JMP short/near/far

More information

Microsoft PowerPoint - CA_03 Chapter5 Part-II_multi _V1.ppt

Microsoft PowerPoint - CA_03 Chapter5 Part-II_multi _V1.ppt Chapter5-2 The Processor: Datapath and Control (Multi-cycle implementation) 臺大電機系 吳安宇教授 V1. 03/27/2007 For 2007 DSD Course 臺大電機吳安宇教授 - 計算機結構 1 Outline 5.1 Introduction 5.2 Logic Design Conventions 5.3

More information

L15 MIPS Assembly

L15 MIPS Assembly Lecture 19: MIPS Assembly Language 程序的机器级表示主要内容 MIPS 指令格式 R- 类型 / I- 类型 / J- 类型 MIPS 寄存器 长度 / 个数 / 功能分配 MIPS 操作数 寄存器操作数 / 存储器操作数 / 立即数 / 文本 / 位 MIPS 指令寻址方式 立即数寻址 / 寄存器寻址 / 相对寻址 / 伪直接寻址 / 偏移寻址 MIPS 指令类型

More information

Ps22Pdf

Ps22Pdf ( ) ( 150 ) 25 15 20 40 ( 25, 1, 25 ), 1. A. B. C. D. 2. A. B. C. D. 3., J = 1 H = 1 ( A B, J', J, H ) A. A = B = 1, J' =0 B. A = B = J' =1 C. A = J' =1, B =0 D. B = J' = 1, A = 0 4. AB + AB A. AB B. AB

More information

<4D6963726F736F667420506F776572506F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074>

<4D6963726F736F667420506F776572506F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074> 软 件 架 构 师 研 修 讲 座 胡 协 刚 软 件 架 构 师 UML/RUP 专 家 szjinco@public.szptt.net.cn 中 国 软 件 架 构 师 网 东 软 培 训 中 心 小 故 事 : 七 人 分 粥 当 前 软 件 团 队 的 开 发 现 状 和 面 临 的 问 题 软 件 项 目 的 特 点 解 决 之 道 : 从 瀑 布 模 型 到 迭 代 模 型 解 决 项

More information

A Preliminary Implementation of Linux Kernel Virus and Process Hiding

A Preliminary Implementation of Linux Kernel Virus and Process Hiding 邵 俊 儒 翁 健 吉 妍 年 月 日 学 号 学 号 学 号 摘 要 结 合 课 堂 知 识 我 们 设 计 了 一 个 内 核 病 毒 该 病 毒 同 时 具 有 木 马 的 自 动 性 的 隐 蔽 性 和 蠕 虫 的 感 染 能 力 该 病 毒 获 得 权 限 后 会 自 动 将 自 身 加 入 内 核 模 块 中 劫 持 的 系 统 调 用 并 通 过 简 单 的 方 法 实 现 自 身 的

More information

EK-STM32F

EK-STM32F STMEVKIT-STM32F10xx8 软 件 开 发 入 门 指 南 目 录 1 EWARM 安 装... 1 1.1 第 一 步 : 在 线 注 册... 1 1.2 第 二 步 : 下 载 软 件... 2 1.3 第 三 步 : 安 装 EWARM... 3 2 基 于 STMEVKIT-STM32F10xx8 的 示 例 代 码 运 行... 6 2.1 GPIO Demo... 6 2.2

More information

Microsoft PowerPoint - CA_02 Chapter5 Part-I_Single _V2.ppt

Microsoft PowerPoint - CA_02 Chapter5 Part-I_Single _V2.ppt Chapter5- The Processor: Datapath and Control (Single-cycle implementation) 臺大電機系吳安宇教授 V. 3/27/27 V2. 3/29/27 For 27 DSD Course 臺大電機吳安宇教授 - 計算機結構 Outline 5. Introduction 5.2 Logic Design Conventions 5.3

More information

<4D6963726F736F667420576F7264202D20C7B6C8EBCABDCFB5CDB3C9E8BCC6CAA6B0B8C0FDB5BCD1A75FD1F9D5C22E646F63>

<4D6963726F736F667420576F7264202D20C7B6C8EBCABDCFB5CDB3C9E8BCC6CAA6B0B8C0FDB5BCD1A75FD1F9D5C22E646F63> 因 为 路 过 你 的 路, 因 为 苦 过 你 的 苦, 所 以 快 乐 着 你 的 快 乐, 追 逐 着 你 的 追 逐 内 容 简 介 本 书 根 据 2005 年 下 半 年 实 施 的 全 国 计 算 机 技 术 与 软 件 专 业 技 术 资 格 ( 水 平 ) 考 试 嵌 入 式 系 统 设 计 师 级 考 试 大 纲 精 神, 在 深 入 研 究 历 年 计 算 机 技 术 与 软

More information

第七章 中断

第七章 中断 计算机组成原理 总结 图说 COD llxx@ustc.edu.cn 计算科学 (Computing) 计算机组成 :how computers work 硬盘 电源导线和电缆 软驱 内存 扩展槽 扩展卡 主板 微处理器 (CPU) 各种外设接口, 包括 : 键盘 鼠标 显示器 USB 声卡 网卡 并行口等 CPU 风扇支架 PCI 扩展槽 IDE 内存 CPU 硬条插盘接插槽槽口 华硕 P4S533-MX

More information

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt MACHINE LANGUAGE CODING AND THE DEBUG SOFTWARE DEVELOPMENT PROGRAM OF THE PC MACHINE LANGUAGE CODING AND THE DEBUG SOFTWARE DEVELOPMENT PROGRAM OF THE PC 4.1 Converting Assembly Language Instructions to

More information

目 录

目 录 1 Quick51...1 1.1 SmartSOPC Quick51...1 1.2 Quick51...1 1.3 Quick51...2 2 Keil C51 Quick51...4 2.1 Keil C51...4 2.2 Keil C51...4 2.3 1 Keil C51...4 2.4 Flash Magic...9 2.5 ISP...9 2.6...10 2.7 Keil C51...12

More information

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I 2004 5 IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I Abstract The techniques of digital video processing, transferring

More information

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt MACHINE LANGUAGE CODING AND THE DEBUG SOFTWARE DEVELOPMENT PROGRAM OF THE PC General instruction format for machine code 611 37100 微處理機原理與應用 Lecture 04-4 MACHINE LANGUAGE CODING AND THE DEBUG SOFTWARE

More information

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl SKLOIS (Pseudo) Preimage Attack on Reduced-Round Grøstl Hash Function and Others Shuang Wu, Dengguo Feng, Wenling Wu, Jian Guo, Le Dong, Jian Zou March 20, 2012 Institute. of Software, Chinese Academy

More information

CH01.indd

CH01.indd 3D ios Android Windows 10 App Apple icloud Google Wi-Fi 4G 1 ( 3D ) 2 3 4 5 CPU / / 2 6 App UNIX OS X Windows Linux (ios Android Windows 8/8.1/10 BlackBerry OS) 7 ( ZigBee UWB) (IEEE 802.11/a/b/g/n/ad/ac

More information

System Design and Setup of a Robot to Pass over Steps Abstract In the research, one special type of robots that can pass over steps is designed and se

System Design and Setup of a Robot to Pass over Steps Abstract In the research, one special type of robots that can pass over steps is designed and se 8051 8051 System Design and Setup of a Robot to Pass over Steps Abstract In the research, one special type of robots that can pass over steps is designed and setup. This type of robot uses two kinds of

More information

DPJJX1.DOC

DPJJX1.DOC 8051 111 2K 1 2 3 ' ' 1 CPU RAM ROM / A/D D/A PC CPU 40 68 10 20 8 51 PIII 8051 2 MCS51 8051 8031 89C51 8051 8031 89C51? MCS51 INTEL INTEL 8031 8051 8751 8032 8052 8752 8051 8051 8051 MCS51 8031 8031

More information

提纲. 1 实验准备. 2 从实模式进入保护模式. 3 小结 陈香兰 ( 中国科学技术大学计算机学院 ) 软件综合实验之操作系统 July 1, / 11

提纲. 1 实验准备. 2 从实模式进入保护模式. 3 小结 陈香兰 ( 中国科学技术大学计算机学院 ) 软件综合实验之操作系统 July 1, / 11 .. 软件综合实验之操作系统 进入保护模式 陈香兰 中国科学技术大学计算机学院 July 1, 2016 陈香兰 ( 中国科学技术大学计算机学院 ) 软件综合实验之操作系统 July 1, 2016 1 / 11 提纲. 1 实验准备. 2 从实模式进入保护模式. 3 小结 陈香兰 ( 中国科学技术大学计算机学院 ) 软件综合实验之操作系统 July 1, 2016 2 / 11 实验准备 实验环境准备

More information

1 CPU interrupt INT trap CPU exception

1 CPU interrupt INT trap CPU exception 1 CPU interrupt INT trap CPU exception 2 X86 CPU gate 64 16 1 2 5 8 16 16 P DPL 00101 TSS 101 DPL P 1 64 16 1 2 1 1 3 3 5 16 16 16 P DPL 0 D 000 16 110 111 100 D 1=32 0=16 DPL P 1 INT DPL1>=CPL>=DPL CPU

More information

Microsoft Word - 正文.doc

Microsoft Word - 正文.doc 1 2 1 2 3 4 5 6 7 8 9 10 3 1 150 2 150 1 1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.3 1.3.1 1.3.2 1.4 1.4.1 CPU 1.4.2 I/O 1.4.3 I/O 1.5 1.5.1 CISC RISC 1.5.2 1.5.3 1.6 1.6.1 1.6.2 N 1.6.3 2 2.1 2.1.1 2.1.2 2.1.3

More information

ICD ICD ICD ICD ICD

ICD ICD ICD ICD ICD MPLAB ICD2 MPLAB ICD2 PIC MPLAB-IDE V6.0 ICD2 usb PC RS232 MPLAB IDE PC PC 2.0 5.5V LED EEDATA MPLAB ICD2 Microchip MPLAB-IDE v6.0 Windows 95/98 Windows NT Windows 2000 www.elc-mcu.com 1 ICD2...4 1.1 ICD2...4

More information

Ch03_嵌入式作業系統建置_01

Ch03_嵌入式作業系統建置_01 Chapter 3 CPU Motorola DragonBall ( Palm PDA) MIPS ( CPU) Hitachi SH (Sega DreamCast CPU) ARM StrongARM CPU CPU RISC (reduced instruction set computer ) CISC (complex instruction set computer ) DSP(digital

More information

Windows XP

Windows XP Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs

More information

OOAD PowerDesigner OOAD Applying PowerDesigner CASE Tool in OOAD PowerDesigner CASE Tool PowerDesigner PowerDesigner CASE To

OOAD PowerDesigner OOAD Applying PowerDesigner CASE Tool in OOAD PowerDesigner CASE Tool PowerDesigner PowerDesigner CASE To PowerDesigner Applying PowerDesigner CASE Tool in OOAD albertchung@mpinfo.com.tw PowerDesigner CASE Tool PowerDesigner PowerDesigner CASE Tool PowerDesigner CASE Tool CASE Tool PowerDesignerUnified ProcessUMLing

More information

A 2006 2 1.1 1.2 1.3 1.4 1.5 1 : 2. 3. 4 5 1.1 1.1.1 1 1.1.1 2 CPU = + = CPU + = 1.1.1 3 : : 1.1.1 4 ROM 1.1.2 1 1946 6 John von Neumann : (1) (2) ( ) (3) ( ) ( ) (PC) (?) 2 3 : ADD ADD AX BX CPU ALU

More information

Microsoft PowerPoint - 05-第五讲-寻址方式.pptx

Microsoft PowerPoint - 05-第五讲-寻址方式.pptx 第五讲 授课教师 : 陆俊林王箫音 2012 年春季学期 主要内容 一 寻址方式概述 二 数据的寻址方式 三 转移地址的寻址方式 教材相关章节 : 微型计算机基本原理与应用 ( 第二版 ) 第 4 章寻址方式与指令系统 1 主要内容 一 寻址方式概述 二 数据的寻址方式 三 转移地址的寻址方式 2 指令的组成 指令由操作码和操作数两部分组成 操作码操作数 MOV AX, 8726H ADD AX,

More information

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor 1 4.1.1.1 (Load) 14 1.1 1 4.1.1.2 (Save) 14 1.1.1 1 4.1.2 (Buffer) 16 1.1.2 1 4.1.3 (Device) 16 1.1.3 1 4.1.3.1 (Select Device) 16 2 4.1.3.2 (Device Info) 16 2.1 2 4.1.3.3 (Adapter) 17 2.1.1 CD-ROM 2 4.1.4

More information

Microsoft PowerPoint - Lecture7II.ppt

Microsoft PowerPoint - Lecture7II.ppt Lecture 8II SUDOKU PUZZLE SUDOKU New Play Check 軟體實作與計算實驗 1 4x4 Sudoku row column 3 2 } 4 } block 1 4 軟體實作與計算實驗 2 Sudoku Puzzle Numbers in the puzzle belong {1,2,3,4} Constraints Each column must contain

More information

投影片 1

投影片 1 9 1 9-1 Windows XP Windows Server 2003 Mac OS Linux, 都 (OS, Operating System ) 2 3 , 來, 行 3 理 行 4 ,, (UI, User Interface), 滑, 令 列 (CLI, Command-Line Interface) (GUI, Graphical User Interface) 2 5 令 列,

More information

穨control.PDF

穨control.PDF TCP congestion control yhmiu Outline Congestion control algorithms Purpose of RFC2581 Purpose of RFC2582 TCP SS-DR 1998 TCP Extensions RFC1072 1988 SACK RFC2018 1996 FACK 1996 Rate-Halving 1997 OldTahoe

More information

第五章 重叠、流水和现代处理器技术

第五章 重叠、流水和现代处理器技术 2006 5 l t 1 t 2 t 3 t 4 I: add r1,r2,r3 J: sub r4,r1,r5 : (Hazard) : (Hazard) Instr 1 Instr 2 ( ) Cycle 1 Cycle 2 Cycle 3 Cycle 4 Cycle 5 Cycle 6 Cycle 7 Load Ifetch ALU DMem Instr 1 Ifetch ALU DMem

More information

主要内容 指令系统的一般概念 指令操作方式操作码的含义指令对操作数的要求指令执行的结果 寻址方式 指令说明 2015 年 3 月 16 日星期一 8 时 2 分 37 秒 2

主要内容 指令系统的一般概念 指令操作方式操作码的含义指令对操作数的要求指令执行的结果 寻址方式 指令说明 2015 年 3 月 16 日星期一 8 时 2 分 37 秒 2 第 3 章 8086 的寻址方式和指令系统 (1) 2015 年 3 月 16 日星期一 8 时 2 分 37 秒 1 主要内容 指令系统的一般概念 指令操作方式操作码的含义指令对操作数的要求指令执行的结果 寻址方式 指令说明 2015 年 3 月 16 日星期一 8 时 2 分 37 秒 2 3.1 8086 的寻址方式 两种不同的类型 : 一类是程序地址 ( 在代码段中 ) 的寻址方式 ; 另一类是操作数地址的寻址方式

More information

D/A DAC ( 1us) (10~20 ) DAC0832 1

D/A DAC ( 1us) (10~20 ) DAC0832 1 D/A DAC0832 8 ( 1us) (10~20 ) DAC0832 1 1. 20 DI7~DI0 ILE 8 8 DAC 8 D/A LE LE & RFB VREF IOUT2 IOUT1 RFB CS WR1 XFER WR2 & & AGND VCC DGND 2 DI7~DI0 ILE & 8 LE 8 DAC LE 8 D/A RFB V REF IOUT2 IOUT1 R FB

More information

Microsoft PowerPoint - notes3-Simple-filled12

Microsoft PowerPoint - notes3-Simple-filled12 Generic Computer Organization CSE 30321 Computer Architecture I Lecture Notes 3: A Simple Computer: Simple12 And Design at Register Transfer Level Stored Program Machine (vonneumann Model) Instructions

More information

<4D F736F F D20B5DAC8FDCBC4D5C2D7F7D2B5B4F0B0B82E646F63>

<4D F736F F D20B5DAC8FDCBC4D5C2D7F7D2B5B4F0B0B82E646F63> 第三章 Q3 1 1. 省略了 I/O 操作的复杂逻辑, 易实现, 耗费低 ; 2. 可以利用丰富的内存寻址模式实现灵活的 I/O 操作 Q3 2 假设存储单元 ds1 处寄存器地址为 0x2000, 代码如下 #define ds1 0x2000 while ( *ds1 == 0 ) ; Q3 3 假设设备 (dev1) 中有两个寄存器 ds1 和 dd1,dev1 的地址为 0x1000,ds1

More information

06721 main() lock pick proc() restart() [2][4] MINIX minix2.0 GDT, IDT irq table[] CPU CPU CPU CPU (IDTR) idt[] CPU _hwint00:! Interrupt

06721 main() lock pick proc() restart() [2][4] MINIX minix2.0 GDT, IDT irq table[] CPU CPU CPU CPU (IDTR) idt[] CPU _hwint00:! Interrupt MINIX ( 730000) ( 730000) MINIX MINIX2.0 MINIX : MINIX TP3 1 MINIX UNIX Tanenbaum UNIX MINIX LINUX MINIX MINIX MINIX1.0 UNIX V7 MINIX2.0[3] POSIX MINIX3 MINIX Gabriel A. Wainer 1994-1995 [5] 1998 I/O 2002

More information

数据库系统概论

数据库系统概论 所谓寻址方式, 就是指令中用于说明操 作数所在地或者所在地地址的方法 8088/8086 的寻址方式分为两类 : 关于寻找数据的寻址方式 关于寻找转移地址的寻址方式 下面讲关于数据的寻址方式时, 均以数 据传送指令 MOV 为例讲解 MOV 指令格式如下 : MOV DST, SRC 助记符 目的操作数 指令完成的功能 : (DST) 源操作数 (SRC) 一. 关于寻找数据的寻址方式 ( 共 8

More information

42 2141601026 2016 11 27 2 1.1............................................. 2 1.2....................................... 2 1.2.1......................................... 2 1.3.............................................

More information

Microsoft PowerPoint - ch6 [相容模式]

Microsoft PowerPoint - ch6 [相容模式] UiBinder wzyang@asia.edu.tw UiBinder Java GWT UiBinder XML UI i18n (widget) 1 2 UiBinder HelloWidget.ui.xml: UI HelloWidgetBinder HelloWidget.java XML UI Owner class ( Composite ) UI XML UiBinder: Owner

More information

Microsoft PowerPoint - 微原-第3章2.ppt [兼容模式]

Microsoft PowerPoint - 微原-第3章2.ppt [兼容模式] 本教案内容 第 3 章 8086CPU 指令系统 1. 汇编语言指令 9. 转移指令 10. 2. 8086 指令分类循环控制指令 11. 子程序调用返回 3. 数据与转移地址的指令寻址方式 12. 中断调用返回指 4. 数据传送类指令令 5. 算术运算类指令 13. 字符串操作指令 6. 逻辑运算类指令 14. I/O 输入输出指令 7. 移位类指令 15. 其它指令 8. 标志位操作指令 16.

More information

untitled

untitled 2006 6 Geoframe Geoframe 4.0.3 Geoframe 1.2 1 Project Manager Project Management Create a new project Create a new project ( ) OK storage setting OK (Create charisma project extension) NO OK 2 Edit project

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

Microsoft PowerPoint - C15_LAB_MTS86_INTRO

Microsoft PowerPoint - C15_LAB_MTS86_INTRO INTRODUCTION TO THE MTS-86C MICROCOMPUTER TRAINER What s MTS-86? 7-4 7-5 7-7 7-3 7-2 7-3 7-6 2 4 5 3 7-6 7-8 7-3 8 4 5 3 6 37 微處理機原理與應用國立台灣大學生物機電系 SPECIFICATION () CPU: 886 (2) Display Unit: LCD (6x2 Line)

More information

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt 8088/8086 MICROPROCESSOR PROGRAMMING INTEGER INSTRUCTIONS AND COMPUTATIONS 8088/8086 MICROPROCESSOR PROGRAMMING INTEGER INSTRUCTIONS AND COMPUTATIONS 5.1 Data-Transfer Instructions 5.2 Arithmetic Instructions

More information

(2) Function 0BH: Function 0CH: (pixel, picture element) Function 0DH: Function 0FH: Function 13H:

(2) Function 0BH: Function 0CH: (pixel, picture element) Function 0DH: Function 0FH: Function 13H: (1) INT 10H Function 00H: Function 01H: Function 02H: Function 03H: Function 05H: Function 06H: Function 07H: Function 08H: Function 09H: Function 0AH: (2) Function 0BH: Function 0CH: (pixel, picture element)

More information

目次 

目次  軟 體 工 程 期 末 報 告 網 路 麻 將 91703014 資 科 三 黃 偉 嘉 91703024 資 科 三 丘 祐 瑋 91703030 資 科 三 江 致 廣 1 目 次 壹 前 言 (Preface) P.4 貳 計 畫 簡 述 及 預 期 效 益 (Project Description and Expected Results) P.4 參 系 統 開 發 需 求 (System

More information

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt 8088/8086 MICROPROCSOR PROGRAMMING INTEGER INSTRUCTIONS AND COMPUTATIONS The MOVE The move (MOV) instruction is used to transfer a byte or a word of data from a source operand to a destination operand

More information

Bus Hound 5

Bus Hound 5 Bus Hound 5.0 ( 1.0) 21IC 2007 7 BusHound perisoft PC hound Bus Hound 6.0 5.0 5.0 Bus Hound, IDE SCSI USB 1394 DVD Windows9X,WindowsMe,NT4.0,2000,2003,XP XP IRP Html ZIP SCSI sense USB Bus Hound 1 Bus

More information

Ch2.1

Ch2.1 2.1 指令系统 王超 中国科学技术大学计算机学院嵌入式系统实验室 2019 年春 主要内容 1. 指令系统概述 1.1 指令系统的发展 1.2 指令系统的性能要求 1.3 编程语言与硬件的关系 2. 指令格式 2.1 指令的一般格式 2.2 指令字长 2.3 指令助记符 3. 操作数与操作类型 3.1 操作数类型 3.2 数据在存储器中的存储方式 3.3 操作类型 4. 寻址方式 4.1 指令寻址

More information

第5章:汇编语言程序设计

第5章:汇编语言程序设计 第 5 章 : 汇编语言程序设计 程 汇编语言指令格式 系统伪指令 存储器选择方式 常用子程序 1 汇编语言程序设计 PIC 指令系统 语言系统 指 CPU 编 器语言 器语言 器语言 设计 用 语言 设计 语言 汇编语言 2 汇编语言指令格式 汇编语言指令格式 ( 指令 ) label opcode operand comment 指令 用 存 指令 指令语 3 汇编语言指令格式 1 指令 用 指令

More information

1.ai

1.ai HDMI camera ARTRAY CO,. LTD Introduction Thank you for purchasing the ARTCAM HDMI camera series. This manual shows the direction how to use the viewer software. Please refer other instructions or contact

More information

lan03_yen

lan03_yen IEEE 8. LLC Logical Link Control ll rights reserved. No part of this publication and file may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical,

More information

untitled

untitled niosii H:\DB2005\project\niosDK\Example\NiosSmall QuartusII4.2 File -> New Project Wizard Diectory,Name,Top-Level Entity Add Files EDA Tools Setting Finish, OK H:\DB2005\project\niosDK\Example\NiosSmall

More information

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1 21 , 7, Windows,,,, : 010-62782989 13501256678 13801310933,,,, ;,, ( CIP) /,,. : ;, 2005. 11 ( 21 ) ISBN 7-81082 - 634-4... - : -. TP316-44 CIP ( 2005) 123583 : : : : 100084 : 010-62776969 : 100044 : 010-51686414

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

201406002+大学计算机基础B.doc

201406002+大学计算机基础B.doc 目 录. 大 学 计 算 机 基 础 B( 非 独 立 设 课 ).... 计 算 机 操 作 基 础 ( 独 立 设 课 )...3 3. 程 序 设 计 基 础 ( 非 独 立 设 课 )...5 4. 面 向 对 象 程 序 设 计 ( 非 独 立 设 课 )...8 5. 数 据 库 原 理 ( 非 独 立 设 课 )...0 6. 算 法 设 计 与 分 析 ( 非 独 立 设 课 )...

More information

PLC Simulative Control of an Elevator by PLC POWER SUPPLY ii iii ABSTRACT In the modern time, elevator is very popular and based. Most techniques of elevator are owned by foreigners. A simple introduction

More information

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco Windows RTEMS 1 Danilliu MMI TCP/IP 80486 QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos ecos Email www.rtems.com RTEMS ecos RTEMS RTEMS Windows

More information

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Ác Åé å Serial ATA ( Silicon Image SiI3114) S A T A (1) SATA (2)

More information

USB - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - DES Module FSM CONTROLLER 8 6 8 Key ROM 8 8 Data_in RAM Data_out RAM 8 USB Board - 8 - - 9 - - 10 - - 11 - - 12 - USB device INF Windows INF Device Function

More information

02

02 Thinking in C++: Volume One: Introduction to Standard C++, Second Edition & Volume Two: Practical Programming C++ C C++ C++ 3 3 C C class C++ C++ C++ C++ string vector 2.1 interpreter compiler 2.1.1 BASIC

More information

ARM JTAG实时仿真器安装使用指南

ARM JTAG实时仿真器安装使用指南 ARM JTAG Version 1.31 2003. 11. 12 ARM JTAG ARM JTAG.3 ARM 2.1.4 2.2.4 ARM JTAG 3.1 18 3.2 18 3.2.1 Multi-ICE Server.18 3.2.2 ADS..21 ARM JTAG 4.1 Multi-ICE Server 33 4.1.1 Multi-ICE Server..... 33 4.1.2

More information

Microsoft PowerPoint - Aqua-Sim.pptx

Microsoft PowerPoint - Aqua-Sim.pptx Peng Xie, Zhong Zhou, Zheng Peng, Hai Yan, Tiansi Hu, Jun-Hong Cui, Zhijie Shi, Yunsi Fei, Shengli Zhou Underwater Sensor Network Lab 1 Outline Motivations System Overview Aqua-Sim Components Experimental

More information

OSI OSI 15% 20% OSI OSI ISO International Standard Organization 1984 OSI Open-data System Interface Reference Model OSI OSI OSI OSI ISO Prototype Prot

OSI OSI 15% 20% OSI OSI ISO International Standard Organization 1984 OSI Open-data System Interface Reference Model OSI OSI OSI OSI ISO Prototype Prot OSI OSI OSI 15% 20% OSI OSI ISO International Standard Organization 1984 OSI Open-data System Interface Reference Model OSI OSI OSI OSI ISO Prototype Protocol OSI OSI OSI OSI OSI O S I 2-1 Application

More information

untitled

untitled http://www.embedded-soc.com/ J-LINK J-Link Rev2.1 http://www.embedded-soc.com/ 2007-11-11 http://www.embedded-soc.com/ J-LINK J-Link ARM JTAG J-LINK J-LINKJLINK J-FLASH ARM F.A.Q jlink GDBserver J-Flash

More information

K301Q-D VRT中英文说明书141009

K301Q-D VRT中英文说明书141009 THE INSTALLING INSTRUCTION FOR CONCEALED TANK Important instuction:.. Please confirm the structure and shape before installing the toilet bowl. Meanwhile measure the exact size H between outfall and infall

More information

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc Key @ Value Chain fanchihmin@yahoo.com.tw 1 Key@ValueChain 1994.6 1996.6 2000.6 2000.10 ~ 2004.10 (E- RD / Pre-Sales / Consultant) APS, Advanced Planning & Scheduling CDP, Collaborative Demand Planning

More information

D C 93 2

D C 93 2 D9223468 3C 93 2 Java Java -- Java UML Java API UML MVC Eclipse API JavadocUML Omendo PSPPersonal Software Programming [6] 56 8 2587 56% Java 1 epaper(2005 ) Java C C (function) C (reusability) eat(chess1,

More information

学习MSP430单片机推荐参考书

学习MSP430单片机推荐参考书 MSP430 16 MSP430 C MSP430 C MSP430 FLASH 16 1 CPU 16 ALU 16 PC SP SR R4~R15 2 3 00-FFH 100-1FFH 4 5 1 2 51 24 27 6 1 2 3 4 5 6 4 12 SR SP SR CPU SR CPU C Z N GIE CPUOff CPU OscOff SCG0 SCG1 CPU EXIT SP

More information

mvc

mvc Build an application Tutor : Michael Pan Application Source codes - - Frameworks Xib files - - Resources - ( ) info.plist - UIKit Framework UIApplication Event status bar, icon... delegation [UIApplication

More information

Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1-1MRS755673

Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1-1MRS755673 Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1 - Contents MicroSCADA Pro Portal Marketing and sales Ordering MicroSCADA Pro Partners Club 2005 ABB - 2 - MicroSCADA Pro - Portal Imagine that

More information

µÚ¶þÕ µ¥´¦ÀíÆ÷Ìåϵ½á¹¹

µÚ¶þÕ  µ¥´¦ÀíÆ÷Ìåϵ½á¹¹ 第二章 单处理器体系结构 石教英 2.1 Intel80x86 处理器体系结构综述 (1) CISC 体系结构 计算机自 40 年代中叶问世以来, 其体系结构的发展经历了 : 简单 复杂 极其复杂 简单 复杂 极其复杂 接线控制器, 速度作数不定:0-6 个; 操作数种类十几种; 寻址方设计, 以便于修改, 纠指令数增加; 寻址方式增加; 指令格式复杂指令数少: 加法和转移令数增加; CPI 接近于1;

More information

1

1 1 2 3 4 5 GNUDebugger 6 7 void main(int argc, char **argv){ vulncpy(argv[1]); return; } void vulncpy(char *a){ char buf[30]; strcpy(buf, a); return; } *argv[1] buf Shellcode *argv[1]... &buf &buf 8 strcpy

More information

IEC 传输帧格式

IEC 传输帧格式 IEC 60870-5-1 GB GB/T XXXXX XXXX idt IEC 60870-5-1:1990 Telecontrol Equipment and Systems Part 5:Transmission Protocol Section 1: Transmission frame formats ( ) 1998.6.28 2000.2.10 2000.5.7 200x-xx-xx

More information

Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE "Project Properties" IDE makefile 1.

Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE Project Properties IDE makefile 1. Oracle Solaris Studio 12.2 IDE 2010 9 2 8 9 10 11 13 20 26 28 30 32 33 Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE "Project Properties" IDE makefile 1. "File" > "New

More information

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM Oracle Solaris Studio 12.2 DLight 2010 9 2 2 3 DLight 3 3 6 13 CPU 16 18 21 I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AMP Apache MySQL

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

Microsoft Word - 選擇_無解答2_.doc

Microsoft Word - 選擇_無解答2_.doc 選 擇 題 : 1 ( ) 下 列 何 者 為 W W W 的 通 訊 協 定? (A)H T T P ( H y p e r T e x t T r a n s f e r P r o t o c o l ) (B)S M T P ( S i m p l e M a i l T r a n s f e r P r o t o c o l ) (C) F T P ( F i l e T r a n

More information

Microsoft PowerPoint - STU_EC_Ch08.ppt

Microsoft PowerPoint - STU_EC_Ch08.ppt 樹德科技大學資訊工程系 Chapter 8: Counters Shi-Huang Chen Fall 2010 1 Outline Asynchronous Counter Operation Synchronous Counter Operation Up/Down Synchronous Counters Design of Synchronous Counters Cascaded Counters

More information

Microsoft PowerPoint - Ch3-8086CPU指令系统(2)-寻址.pptx

Microsoft PowerPoint - Ch3-8086CPU指令系统(2)-寻址.pptx 2018 版 微机原理与系统设计 第 3 章 8086CPU 指令系统 董明皓, 博士 西安电子科技大学 dminghao@xidian.edu.cn 目录 1 2 3 4 5 汇编语言基本概念 8086 指令分类数据与转移地址的寻址方式 8086 的六类指令总结 2 目录 1 2 3 4 5 汇编语言基本概念 8086 指令分类数据与转移地址的寻址方式 8086 的六类指令总结 3 8086 指令分类

More information

untitled

untitled CPU!! 00-11-8 Liping zhang, Tsinghua 1 : ADD(r1, r, r) CMPLEC(r, 5, r0) MUL(r1, r, r) SUB(r1, r, r5) ADD r, ( ) r CMP. CMP r.. t t + 1 t + t + t + t + 5 t + 6 IF( ) ADD CMP MUL SUB RF NOP ADD CMP MUL SUB

More information

ebook105-12

ebook105-12 12 12.1 C P U T x X T y Y T x >T y Y P XY Y X P x = 1 / T x P y = 1 / T y ( 1 2-1 ) P y > P x ( 1 2-2 ) C P U = # 12.2 334 C P U 12-1 a I F I D E X E M E M W B C P U 12-1 b C P U C P U t i n s t t i n

More information

Andes Technology PPT Temp

Andes Technology PPT Temp 晶心科技線上技術研討會 AndesCore 便捷的全 C 嵌入式编程 晶心科技市場及技術服務部毛礼杰軟件經理 WWW.ANDESTECH.COM 大纲 系统初始化介绍 异常和中断说明 全 C 语法例子说明 总结 2 CPU 相关特性 1: 中断向量表 系统初始化 (1) 2: 系统寄存器 通常需要用 assembly( 汇编 / 组合 ) 语言来操作 AndesCore 全 C 嵌入式编程 C 扩展语法

More information

Microsoft PowerPoint - C15_LECTURE_NOTE_06

Microsoft PowerPoint - C15_LECTURE_NOTE_06 8088/8086 MICROPROCESSOR PROGRAMMING CONTROL FLOW INSTRUCTIONS AND PROGRAM STRUCTURES 8088/8086 MICROPROCESSOR PROGRAMMING CONTROL FLOW INSTRUCTIONS AND PROGRAM STRUCTURES 61 Flag-Control 62 Compare 63

More information

「人名權威檔」資料庫欄位建置表

「人名權威檔」資料庫欄位建置表 ( version 0.2) 1 3 3 3 3 5 6 9.... 11 Entities - Relationship Model..... 12 13 14 16 2 ( ) Int Varchar Text byte byte byte Id Int 20 Name Surname Varchar 20 Forename Varchar 20 Alternate Type Varchar 10

More information

( Version 0.4 ) 1

( Version 0.4 ) 1 ( Version 0.4 ) 1 3 3.... 3 3 5.... 9 10 12 Entities-Relationship Model. 13 14 15.. 17 2 ( ) version 0.3 Int TextVarchar byte byte byte 3 Id Int 20 Name Surname Varchar 20 Forename Varchar 20 Alternate

More information

WinMDI 28

WinMDI 28 WinMDI WinMDI 2 Region Gate Marker Quadrant Excel FACScan IBM-PC MO WinMDI WinMDI IBM-PC Dr. Joseph Trotter the Scripps Research Institute WinMDI HP PC WinMDI WinMDI PC MS WORD, PowerPoint, Excel, LOTUS

More information

6-7 6-8 6-9 Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram 6-11 6-12

6-7 6-8 6-9 Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram 6-11 6-12 6-1 6-2 6-3 6-4 6-5 6-6 6-7 6-8 6-9 Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram 6-11 6-12 6-13 6-14 6-15 6-16 6-17 6-18 6-19 6-20 6-21

More information

Oracle 4

Oracle 4 Oracle 4 01 04 Oracle 07 Oracle Oracle Instance Oracle Instance Oracle Instance Oracle Database Oracle Database Instance Parameter File Pfile Instance Instance Instance Instance Oracle Instance System

More information

Chapter 2

Chapter 2 2 (Setup) ETAP PowerStation ETAP ETAP PowerStation PowerStation PowerPlot ODBC SQL Server Oracle SQL Server Oracle Windows SQL Server Oracle PowerStation PowerStation PowerStation PowerStation ETAP PowerStation

More information

Microsoft PowerPoint - ARC110_栾跃.ppt

Microsoft PowerPoint - ARC110_栾跃.ppt ARC110 软 件 构 架 设 计 的 原 则 和 指 南 课 程 内 容 概 述 介 绍 和 引 言 软 件 构 架 和 构 架 师 软 件 构 架 的 设 计 模 式 框 架 和 参 照 设 计 自 我 介 绍 第 一 代 自 费 留 学 生 : 美 国 南 伊 利 诺 州 立 大 学 (SIUE) 电 机 工 程 学 士 (1984) 及 硕 士 学 位 (1985) 历 任 OwensIllinois,

More information