码迷,mamicode.com
首页 > 其他好文 > 详细

Assembly Language

时间:2014-07-22 22:57:16      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:des   style   color   os   io   for   

Programming in machine language can be very tedious and error prone. Instead of using ones and zeros, an assembly language has an advantage, because it uses mnemonics (abbreviations) for the instructions and variable names for memory locations, instead of ones and zeros. There is also a one-to-one correspondence between the instructions in assembly language and in machine language. Programs can be written more easily in assembly lan-guage and do not have many of the disadvantages of programming in machine language.The advantage of programming in assembly language over a high-level language is that one can gain a very detailed look at the architecture of a computer system and write very ef?cient programs, in terms of both increasing speed and saving memory.

Unlike programs in high-level languages, the operands of arithmetic instructions are restricted; they must be from a limited number of special locations built directly in hardware called registers. Registers are primitives used in hardware design that are also visible to the programmer when the computer is completed, so you can think of registers as the bricks of computer construction. A bus is a collection of data lines that is treated together as a single logical signal.

CPU‘s major structural components

• Control unit: Controls the operation of the CPU and hence the computer

• Arithmetic and logic unit (ALU): Performs the computer’s data processing functions

• Registers: Provides storage internal to the CPU

• CPU interconnection: Some mechanism that provides for communication among the control unit,ALU, and registers

Assembly Language,布布扣,bubuko.com

Assembly Language

标签:des   style   color   os   io   for   

原文地址:http://www.cnblogs.com/007beta/p/3848837.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!