摘要: 復習題1、將下列十進制數轉換為二進制形式:a. 3b. 13c. 59d. 119答:a. 11b. 1101c. 111011d. 11101112、將下列二進制值轉換為十進制、八進制和十六進制形式:a. 00010101b. 01010101c. 01001100d. 10011101答:a. 21, 025, 0x15b. 85, 0125, 0x55c. 76, 0114, 0x4Cd. ... 閱讀全文
2015年12月7日 #
這是王爽老師的《匯編語言(第3版)》,經知友推薦確實是一本極好的書!
實驗4 [bx]和loop的使用
(1)、(2)assume cs:code
code segment
mov ax,0020h
mov ds,ax
mov bx,0
mov cx,64
s:mov [bx],bl ;這里必須是mov [bx],bl,而不能是mov [bx],bx,否則會出現類型不匹配
inc bl
loop s
mov ax,4c00h
int 21h
code ends
end
code segment
mov ax,0020h
mov ds,ax
mov bx,0
mov cx,64
s:mov [bx],bl ;這里必須是mov [bx],bl,而不能是mov [bx],bx,否則會出現類型不匹配
inc bl
loop s
mov ax,4c00h
int 21h
code ends
end
摘要: 復習題1、以下模板有什么錯誤?Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->structure { char itable; int&nb... 閱讀全文
摘要: 書中的一個例子,我也是想了半天了?。?!有點難度?。?!Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* 把多個文件的內容追加到一個文件中 */#include <stdio.h>#include &... 閱讀全文