上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: 1:sub dst,srccf=1表示无符号数减法发生溢出OF=1表示有符号减法发生溢出(一个正数减去一个负数却得到一个负数,一个负数减去一个正数却得到一个正数)2:DEC DST目的操作数减1,不置标志位,速度快3:SBB DST,SRC两个操作数相减再减去CF标志位SBB多用于多位数的减法两个64位数相减要先把两个64位数拆成4个32位数再进行如下操作mov eax,low1mov edx,h... 阅读全文
posted @ 2010-01-26 20:23 liulun 阅读(11835) 评论(0) 推荐(0) 编辑
摘要: 1.add dst,srcdst不能是立即数dst和src不能同时采用内存操作数可用于有符号和无符号的加法运算CF=1说明无符号数加法运算有溢出,最高位有进位OF=1说明有符号数加法运算有溢出,两个正数相加结果却是负数,或两个负数相加结果却是正数2.inc dst目的操作数加1,不设置CF标志位速度快3.adc dst,src两个操作数做加法,在加上CF的值两个加数都为64位的时候会用到此指令要先... 阅读全文
posted @ 2010-01-25 21:00 liulun 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include "stdafx.h"#include <windows.h>#include <string>#include "stdio.h"#include <i... 阅读全文
posted @ 2010-01-25 17:07 liulun 阅读(903) 评论(1) 推荐(0) 编辑
摘要: C#->控制台工作流->顺序工作流->拖放code->生成事件处理程序代码如下代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--using System;using System.Workflow.Activities;nam... 阅读全文
posted @ 2010-01-23 21:00 liulun 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 这是针对Windows系统录音软件的小程序目的是把声音文件的频率转换的低一些尝试过用WINDOWS API来做这个事,结果失败了最后还是用程序操作EXE文件完成工作的代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--using System;usin... 阅读全文
posted @ 2010-01-23 15:30 liulun 阅读(885) 评论(3) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- public partial class Form1 : Form { private Point oldPoint = new Point(0,0); public Form1() { Initi... 阅读全文
posted @ 2010-01-22 11:43 liulun 阅读(642) 评论(3) 推荐(0) 编辑
摘要: 1.mov如:mov eax,20 ;把立即数20送入通用寄存器mov edi,esi ;寄存器之间传递数据mov dVar,20 ;把20送入内存操作数(变量)mov WORD PTR [EBX],20 ;传送字到EBX指向的地址mov [ebx],DWORD PTR [ESI] ;错误指令,两个操作数不能都是内存操作数,可改为两条指令完成这个需求mov ds,0023h ;错误指令,立即数不能... 阅读全文
posted @ 2010-01-21 20:57 liulun 阅读(1629) 评论(0) 推荐(0) 编辑
摘要: 32位CPU一般包括如下寄存器1.通用寄存器8个32位寄存器EAX,EBX,ECX,EDX,ESI,EDI,EBP,ESP8个16位寄存器AX,BX,CX,DX,SI,DI,BP,SP8个8位寄存器AH,AL,BH,BL,CH,CL,DH,DL2.段寄存器6个16位段寄存器SS,CS,DS,ES,FS,GS注意只能对CS寄存器做读取操作 阅读全文
posted @ 2010-01-21 20:08 liulun 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 类型  助记符简写字节数范围字节BYTEDB10~255字WORDDW20~65535双字  DWORD  DD  4  0~4294967295远字  FWORD  DF  6    四字  QWORD  DQ  8    十字  TBYTE  DT  10    有符号字节  SBYTE    1  -128~127有符号字  SWORD    2 -32768~32767有符号双字  SDW... 阅读全文
posted @ 2010-01-20 21:19 liulun 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 1立即寻址在指令中使用的操作数为常数如:mov eax,190;与mov eax,00BEH相同,低字节在前smov eax,0FFFFFFFFH;与 mov eax,-1相同eax可以存放一个双字2寄存器寻址操作数已经在CPU的寄存器中如:mov EAX,EBX3直接寻址操作数为一个已经定义好的变量如:mov eax,dvar;dvar为一个双字变量mov dvar,eax在翻译成及其指令后,以... 阅读全文
posted @ 2010-01-18 21:32 liulun 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--.386.model flat,stdcall;内存平坦,参数传递约定option casemap:none;大小写敏感;;;;;;引用一些必要的数据include D:\masm32\include... 阅读全文
posted @ 2010-01-18 12:59 liulun 阅读(409) 评论(1) 推荐(0) 编辑
摘要: 先做菜单的资源文件,代码如下代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#define IDM_TEST 1 #define IDM_HELLO 2 #define IDM_GOODBYE 3 #define IDM_EXIT 4 FirstM... 阅读全文
posted @ 2010-01-17 16:35 liulun 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--.386.model flat,stdcall;内存平坦,参数传递约定option casemap:none;大小写敏感;;;;;;引用一些必要的数据include D:\masm32\include... 阅读全文
posted @ 2010-01-16 16:55 liulun 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--.386.model flat,stdcall;内存平坦,参数传递约定option casemap:none;大小写敏感;;;;;;引用一些必要的数据include D:\masm32\include... 阅读全文
posted @ 2010-01-16 16:54 liulun 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--.386.model flat,stdcall;内存平坦,参数传递约定option casemap:none;大小写敏感;;;;;;引用一些必要的数据include D:\masm32\include... 阅读全文
posted @ 2010-01-16 16:52 liulun 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--.386.model flat,stdcall;内存平坦,参数传递约定option casemap:none;大小写敏感;;;;;;引用一些必要的数据include D:\masm32\include... 阅读全文
posted @ 2010-01-16 16:49 liulun 阅读(462) 评论(0) 推荐(0) 编辑
摘要: WCF发布到IIS,并有相应的SVC宿主文件客户端软件通过CLICK ONCE发布到WCF的相同目录下本例实现了:客户端自动发现WCF服务的功能 1 不通过配置文件绑定WCF服务 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ICallCente... 阅读全文
posted @ 2010-01-06 15:51 liulun 阅读(966) 评论(0) 推荐(0) 编辑
摘要: 1如果你不熟悉开发环境的搭建请看此文:http://www.cnblogs.com/liulun/archive/2009/12/26/1632985.html2如果你看了此文的所有注释仍看不懂,请暂且不要再看本系列的其他文章了,先学学WINDOWS API的相关知识吧3以上代码摘自一个汇编语言全接触的CHM 是一个名叫Lxx的前辈翻译的4希望得到大家的支持 .386.model flat,std... 阅读全文
posted @ 2010-01-05 16:22 liulun 阅读(774) 评论(3) 推荐(1) 编辑
摘要: 1:类当中的一批函数可以被一个public关键字引导来标明这些函数是公开的2:成员函数可以放在类的外部定义但必须在类的内部做声明在类外部做定义的时候必须形如这样:bool YorClassName::YorMethordName(int param){//....return true;}就如同C#中的完全限定名YorClassName::YorMethordName如果在类中定义成员函数的话,就... 阅读全文
posted @ 2009-12-28 21:55 liulun 阅读(301) 评论(0) 推荐(1) 编辑
摘要: 我用的IDE是masm32官方网站是:http://www.masm32.com/下载的地址是:http://www.masm32au.com/masm32/m32v10r.zip(这个包适合中国人开发For programmers in Australia, China, South East Asia and the Pacific region.)hello world的汇编代码如下代码Co... 阅读全文
posted @ 2009-12-26 21:16 liulun 阅读(1080) 评论(2) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;u... 阅读全文
posted @ 2009-12-24 11:16 liulun 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->privatevoid allCtl(Control ctl) { foreach (Control c in ctl.Controls) { if (c.Controls.Count <1) { //do what you want;brea... 阅读全文
posted @ 2009-12-23 12:58 liulun 阅读(395) 评论(0) 推荐(1) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- using System.Runtime.Serialization.Formatters.Binary; using System.IO; using (Stream s = (Stream)(... 阅读全文
posted @ 2009-12-23 12:49 liulun 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 一:指针1指针变量的定义,由数据类型后跟星号,再跟指针变量名组成。2&表示一个实体的地址,此符号可用来对指针变量初始化和赋值如:int count = 18;int * iptr = &count;int * ip;ip = &count; 3*除了可以用来定义指针,标致乘法运算符,还可以做间访操作间访操作就是:取指针的值如:int count = 18;int * ipt... 阅读全文
posted @ 2009-12-22 21:38 liulun 阅读(540) 评论(0) 推荐(1) 编辑
摘要: 说实在的我的C++功底太浅,希望达人不要笑话做这篇文章主要是为了解决斯克迪亚的这个问题实现自动判定是否有.Net框架,没有就安装.Net框架!啥也不说了先来代码吧!代码中注释还算多,如仍有问题请在此文下面的评论中提出代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter... 阅读全文
posted @ 2009-12-18 17:06 liulun 阅读(6120) 评论(10) 推荐(1) 编辑
摘要: 模板和C#的泛型很相似!如下代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include <iostream>#include <string>using namespace std;template<type... 阅读全文
posted @ 2009-12-18 09:12 liulun 阅读(416) 评论(1) 推荐(0) 编辑
摘要: 代码程序运行如图: 阅读全文
posted @ 2009-12-16 19:45 liulun 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 先来个图片:再上代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--using System;using System.Collections.Generic;using System.ComponentModel;using System.Dat... 阅读全文
posted @ 2009-12-15 12:45 liulun 阅读(1561) 评论(0) 推荐(1) 编辑
摘要: 1在数据库中设计一个表2设计一个相关的实体类注意类名和字段的attribute代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Linq;using System.Data.Linq;using System.Data.Linq.Mapping;using System.Text;using Life365.Common;n 阅读全文
posted @ 2009-12-15 08:40 liulun 阅读(616) 评论(1) 推荐(0) 编辑
摘要: 1.解决方案资源管理器--》》资源文件--》》添加--》》新建项--》》资源文件--》》输入名称,就创建了rc资源文件此时head文件夹里也增加了相应的resource.h头文件(resource.h头文件包含资源文件中资源的ID的定义)2.资源视图--》添加资源可以添加相应的资源,如图:明天接着说怎么在程序中引用资源(资源的ID起到了关键作用) 阅读全文
posted @ 2009-12-14 22:23 liulun 阅读(771) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页