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 阅读全文
posted @ 2016-10-27 23:51 dreamafar 阅读(190) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-27 23:19 dreamafar 阅读(293) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-24 23:43 dreamafar 阅读(242) 评论(0) 推荐(0)
摘要:Linking to C/C++ in Protected Mode Programs written for x86 processors running in Protected mode can sometimes have bottlenecks that must be optimized 阅读全文
posted @ 2016-10-24 23:09 dreamafar 阅读(593) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-24 16:23 dreamafar 阅读(449) 评论(0) 推荐(0)
摘要:The Stable Matching Problem originated, in part, in 1962, when David Gale and Lloyd Shapley, two mathematical economists, asked the question: Could on 阅读全文
posted @ 2016-10-21 21:41 dreamafar 阅读(306) 评论(0) 推荐(0)
摘要:The following Scroll.asm program writes 50 lines of text to the screen buffer. It then resizesand repositions the console window, effectively scrollin 阅读全文
posted @ 2016-10-21 20:19 dreamafar 阅读(232) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-21 19:55 dreamafar 阅读(187) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-21 19:49 dreamafar 阅读(148) 评论(0) 推荐(0)
摘要:; 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... 阅读全文
posted @ 2016-10-19 22:02 dreamafar 阅读(184) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2016-10-19 21:51 dreamafar 阅读(166) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2016-10-19 21:47 dreamafar 阅读(215) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-19 21:15 dreamafar 阅读(210) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2016-10-19 21:05 dreamafar 阅读(260) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-19 20:18 dreamafar 阅读(178) 评论(0) 推荐(0)
摘要:Demonstration ProgramWe will demonstrate a short program that demonstrates some capabilities of the MessageBoxAfunction. The first function call displ 阅读全文
posted @ 2016-10-19 20:05 dreamafar 阅读(180) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2016-10-19 17:11 dreamafar 阅读(909) 评论(0) 推荐(0)
摘要:本文分为以下三个部分: 1)用Visual Studio2008建立一个汇编控制台工程 2)汇编程序模板 3)汇编编写的Hello World程序 用Visual Studio2008建立一个汇编控制台工程 打开Visual Studio 2008,创建一个C++空工程 在工程中添加一个.asm文件 阅读全文
posted @ 2016-10-19 17:00 dreamafar 阅读(435) 评论(0) 推荐(0)