摘要: ; 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 阅读(176) 评论(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 阅读(159) 评论(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 阅读(207) 评论(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 阅读(185) 评论(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 阅读(251) 评论(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 阅读(165) 评论(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 阅读(172) 评论(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 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 本文分为以下三个部分: 1)用Visual Studio2008建立一个汇编控制台工程 2)汇编程序模板 3)汇编编写的Hello World程序 用Visual Studio2008建立一个汇编控制台工程 打开Visual Studio 2008,创建一个C++空工程 在工程中添加一个.asm文件 阅读全文
posted @ 2016-10-19 17:00 dreamafar 阅读(361) 评论(0) 推荐(0) 编辑