10 2016 档案
摘要:Let’s write a short program that clears the screen, displays the current disk directory, and asksthe user to enter a filename. (You might want to exte
阅读全文
摘要:Let’s write a simple application that prompts the user for an integer, multiplies it by ascendingpowers of 2 (from 21 to 210) using bit shifting, and
阅读全文
摘要:FindArray Example Let’s create a program that shows how a sample C++ compiler generates code for a function named FindArray. Later, we will write an a
阅读全文
摘要:Linking to C/C++ in Protected Mode Programs written for x86 processors running in Protected mode can sometimes have bottlenecks that must be optimized
阅读全文
摘要:To demonstrate the use of colors and attributes, the WriteColors.asm program creates an array of characters and an array of attributes, one for each c
阅读全文
摘要:The Stable Matching Problem originated, in part, in 1962, when David Gale and Lloyd Shapley, two mathematical economists, asked the question: Could on
阅读全文
摘要:The following Scroll.asm program writes 50 lines of text to the screen buffer. It then resizesand repositions the console window, effectively scrollin
阅读全文
摘要:The following program opens a file for input, reads its contents into a buffer, and displays thebuffer. All procedures are called from the Irvine32 li
阅读全文
摘要:CreateFile Program ExampleThe following program creates a file in output mode, asks the user to enter some text, writes thetext to the output file, re
阅读全文
摘要:; AddVariables.asm - Chapter 3 example. INCLUDE Irvine32.inc .386 Comment ! ;model flat and Irvine32 model can't be used together, ;or multiple .MODEL directives found : .MODEL ignored More than one...
阅读全文
摘要:TITLE Add and Subtract, Version 2 (AddSub2.asm) ; This program adds and subtracts 32-bit integers ; and stores the sum in a variable. INCLUDE Irvine32.inc .data val1 dword 10000h val2...
阅读全文
摘要:TITLE Add and Subtract (AddSub.asm) ; This program adds and subtracts 32-bit integers. INCLUDE Irvine32.inc .code main PROC mov eax,10000h ; EAX = 10000h add eax,400...
阅读全文
摘要:To read characters entered by the user, call GetStdHandle to get the console’s standard input handle and call ReadConsole, using the same input handle
阅读全文
摘要:TITLE Keyboard Toggle Keys (Keybd.asm) Comment ! The following example program demonstrates GetKeyState by checking the states of the Num- Lock and Left Shift keys: Last update: 05/02/2002 ! INCLU...
阅读全文
摘要:The following program tests ReadKey by waiting for a keypress and then reporting whether or not the CapsLock key is down. Note that, you must include
阅读全文
摘要:Demonstration ProgramWe will demonstrate a short program that demonstrates some capabilities of the MessageBoxAfunction. The first function call displ
阅读全文
摘要:Installing masm32 SDK and Irvine Installing masm32 SDK and Irvine Click here to get masm32. After install masm32 SDK, the files are stored into C:\mas
阅读全文
摘要:本文分为以下三个部分: 1)用Visual Studio2008建立一个汇编控制台工程 2)汇编程序模板 3)汇编编写的Hello World程序 用Visual Studio2008建立一个汇编控制台工程 打开Visual Studio 2008,创建一个C++空工程 在工程中添加一个.asm文件
阅读全文
浙公网安备 33010602011771号