.386.model flat,stdcall.stack 4096
ExitProcess PROTO,dwExitCode:DWORD.code
main PROC;計算35+48mov al,35hadd al,48h ;AL =7Dhdaa ;AL =83h(調整后的結果)INVOKE ExitProcess,0
main ENDP
END main
10:DAA應用,將兩個16位壓縮十進制整數加法,和數保存在一個壓縮的雙字
include Irvine32.inc.data
packed_1 WORD 4536h
packed_2 WORD 7207h
sum DWORD ?.code
main PROC;初始化和數與索引mov sum,0mov esi,0;低字節相加mov al,BYTE PTR packed_1[esi]add al,BYTE PTR packed_2[esi]daamov BYTE PTR sum[esi],al;高字節相加,包括進位標志位inc esimov al,BYTE PTR packed_1[esi]adc al,BYTE PTR packed_2[esi]daamov BYTE PTR sum[esi],al;若還有進位,則加上該進位值inc esimov al,0adc al,0mov BYTE PTR sum[esi],al;用十進制顯示和數mov eax,sumcall WriteHexcall Crlfexit
main ENDP
END main
c#中textbox屬性Here we are demonstrating use of Visible property of TextBox Control. 在這里,我們演示了TextBox Control的Visible屬性的使用。 Visible property contains two values 可見屬性包含兩個值 True: Using this - textbox can be visible on par…
python程序執行時間The execution time of a program is defined as the time spent by the system to execute the task. As we all know any program takes some execution time but we dont know how much. So, dont worry, in this tutorial we will learn it by using the…
string.lengthC#String.Length屬性 (C# String.Length property) String.Length property is used to get the total number of characters in the string object (length of the string); it calls with this string and returns the total number of characters. …
從鍵盤輸入一個字符,判斷其是不是大寫字母,如果是則請輸出這個大寫字母,如果不是請輸出“這不是一個大寫字母”的英文信息(要求:能連續輸出直到輸出“#”結束)。
P155 例4.13
DATA SEGMENT
STR DB 0DH,0…
c語言getc函數C語言中的getc()函數 (getc() function in C) Prototype: 原型: int getc(FILE *filename);Parameters: 參數: FILE *filenameReturn type: int 返回類型: int Use of function: 使用功能: In the file handling…
c語言feof函數C語言中的feof()函數 (feof() function in C) Prototype: 原型: int feof(FILE* filename);Parameters: 參數: FILE *filenameReturn type: int(0 or 1) 返回類型: int(0或1) Use of function: 使用功能: In C l…