For faster navigation, this Iframe is preloading the Wikiwand page for
机器语言 .
W65C816S 機器碼 机器语言 (machine language )是一種指令集 的體系。这种指令集称为機器碼 (machine code ),是電腦的CPU 或GPU 可直接解讀的資料。
機器碼有時也被稱為原生碼 (Native Code ),這個名詞比較強調某種程式語言 或函式庫 與執行平台相關的部份。
机器语言是用二进制 代码表示的、计算机 能直接识别和执行的一种机器指令的集合。它是计算机的设计者通过计算机的硬件 结构赋予计算机的操作功能。机器语言具有灵活、直接执行和速度快等特点。不同种类的计算机其机器语言是不相容的,按某种计算机的机器指令编制的程式 不能在另一种计算机上执行。
要用机器语言编写程序,编程人员需首先熟记所用计算机的全部指令代码和代码的涵义。手编程序时,程序员要自己处理每条指令和每一数据的存储分配和输入输出,还需记住编程过程中每步所使用的工作单元处在何种状态。这是一件十分繁琐的工作,编写程序花费的时间往往是实际运行时间的几十倍或几百倍。而且,这样编写出的程序完全是0与1的指令代码,可读性差且容易出错。在现今,除了计算机生产厂家的专业人员外,绝大多数程序员已经不再学习机器语言。
机器语言是微处理器 理解和使用的用于控制它的操作的二进制代码。
8086 到Pentium 的机器语言指令长度可以从1字节到13字节。
尽管机器语言看似非常复杂,但它是有规律的。
现今存在着超过100000种机器语言的指令。 以下是一些範例:
指令部份的範例
0000 代表 載入(LOAD)
0001 代表 儲存(STORE) ...
暫存器部份的範例
0000 代表暫存器 A
0001 代表暫存器 B ...
記憶體部份的範例
000000000000 代表位址為 0 的記憶體
000000000001 代表位址為 1 的記憶體
000000010000 代表位址為 16 的記憶體
100000000000 代表位址為 2^11 的記憶體 整合範例
0000,0000,000000010000 代表 LOAD A, 16
0000,0001,000000000001 代表 LOAD B, 1
0001,0001,000000010000 代表 STORE B, 16
0001,0001,000000000001 代表 STORE B, 1 x86 汇编器与汇编语言
相关话题 汇编器 使用汇编语言编程
{{bottomLinkPreText}}
{{bottomLinkText}}
This page is based on a Wikipedia article written by
contributors (read /edit ).
Text is available under the
CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.
{{current.index+1}} of {{items.length}}
Thanks for reporting this video!
This browser is not supported by Wikiwand :( Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience. Please download and use one of the following browsers:
An extension you use may be preventing Wikiwand articles from loading properly.
If you're using HTTPS Everywhere or you're unable to access any article on Wikiwand, please consider switching to HTTPS (https ://www.wikiwand.com).
An extension you use may be preventing Wikiwand articles from loading properly.
If you are using an Ad-Blocker , it might have mistakenly blocked our content.
You will need to temporarily disable your Ad-blocker to view this page.
✕
This article was just edited, click to reload
Please click Add in the dialog above
Please click Allow in the top-left corner, then click Install Now in the dialog
Please click Open in the download dialog, then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list, then click Install
{{::$root.activation.text}}
Follow Us
Don't forget to rate us
Oh no, there's been an error
Please help us solve this error by emailing us at
support@wikiwand.com
Let us know what you've done that caused this error, what browser you're using, and whether you have any special extensions/add-ons installed.
Thank you!