.386.model flat,stdcall.stack 4096
ExitProcess PROTO,dwExitCode:DWORD.data
dividend WORD 0083h
divisor BYTE 2.code
main PROCmov ax,dividendmov bl,divisorcmp bl,0je NoDivideZero ;為零就不進行除div blNoDivideZero:INVOKE ExitProcess,0
main ENDP
END main
9:計算算式 var4 = (var1 + var2)*var3
.386.model flat,stdcall.stack 4096
ExitProcess PROTO,dwExitCode:DWORD.data
var1 DWORD 10
var2 DWORD 20
var3 DWORD 30
var4 DWORD ?.code
main PROC;var4 =(var1 + var2)*var3mov eax,var1add eax,var2mul var3jc tooBig ;判斷EAX是否放得下mov var4,eaxjmp next
tooBig:
next:INVOKE ExitProcess,0
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…