上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页
摘要: divdw:push bxpush simov bx,ax;暂存低位mov ax,dx;高位除法mov dx,0div cxmov si,ax;暂存商mov ax,0add ax,bx;得到高位余数和低位之和div cx;ax中得到商,dx中是余数mov cx,dxmov dx,sipop sipop bxret 阅读全文
posted @ 2011-03-21 13:30 Mose 阅读(152) 评论(0) 推荐(0) 编辑
摘要: ASSUMEDS:DATA<----既然已经将DATA分配给DSASSUMEES:EXTR......MOVAX,DATA<----为什么还要把DATA的地址赋值给DSMOVDS,AXassume只是设定ds与data的对应关系,并没将数据写入ds中.也即没有后面的mov ax,datamov ds,axds里面不没有真正指定data数据段的地址不过,对于assume还是不清楚啊! 阅读全文
posted @ 2011-03-11 09:36 Mose 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 内存地址空间一个cpu的地址总线宽度为10,那么可寻址1024个内存单元,这1024个可寻址的内存单元就构成这个菜谱的内存地址空间。cpu在操纵和控制这些物理上独立的存储器件时,把它们都当作内存来对待,把它们总的看作一个由若干存储单元组成的逻辑存储器,这个逻辑存储器就称为内存地址空间。汇编中,所面对的是内存地址空间。 阅读全文
posted @ 2011-03-02 10:09 Mose 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 通过改变内核启动参数获得根权限 启动电脑,等待GRUB菜单,如果GRUB菜单隐藏,可以按Esc调出(好像是Shift),如果设置了GRUB密码,按p来解锁,比如我们选择了 Ubuntu,kernel 2.6.12-8-386,按e在启动前编辑启动参数,选择kernel /boot/vmlinuz-2.6.12-8-386root=/dev/hda2 ro quiet splash,按e编辑选定的启动菜单项,在参数最后添加rwinit=/bin/bash,即改为如下命令行: grub edit> kernel /boot/vmlinuz-2.6.12-8-386 root=/dev/hda 阅读全文
posted @ 2011-03-01 14:58 Mose 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 工具:nasmCygwin流程:1.boot.asmorg 07c00h ; 告诉编译器程序加载到7c00处mov ax, csmov ds, axmov es, axcall DispStr ; 调用显示字符串例程jmp $ ; 无限循环DispStr:mov ax, BootMessagemov bp, ax ; ES:BP = 串地址mov cx, 16 ; CX = 串长度mov ax, 01301h ; AH = 13, AL = 01hmov bx, 000ch ; 页号为0(BH = 0) 黑底红字(BL = 0Ch,高亮)mov dl, 0int 10h ; 10h 号中断re 阅读全文
posted @ 2011-03-01 10:39 Mose 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 一个不错的c/c++模板英文教程:Tutorial: Make Vim as Your C/C++ IDE Using c.vim Pluginhttp://www.thegeekstuff.com/2009/01/tutorial-make-vim-as-your-cc-ide-using-cvim-plugin/#其实README.csupport里也有说明,不过说的都是Linux环境,所以这里记录一下我在windows xp里的安装过程。我用的是gvim7.3.下载c.vim(文件名cvim.zip)。解压到C:\Program Files\Vim\vimfiles目录下。需要打开fil 阅读全文
posted @ 2011-02-21 14:54 Mose 阅读(785) 评论(0) 推荐(0) 编辑
摘要: Step 2: Install the C Vim PluginStep 3: Enable the plugin in the ~/.vimrcAdd the following line to the ~/.vimrc to enable the plugin for Vim editor.8 Powerful Features of C.Vim PluginFeature 1: Add Automatic Header to *.c fileWhen you open a file with the extension .c it opens the file withheader as 阅读全文
posted @ 2011-02-21 14:43 Mose 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 远程访问linux服务器使用ssh连接参照lamp brother's linux 9.远程访问linux服务器vmware里网络选择桥接,ms loopback adapter,设置好ip用到的命令有ifconfig netconfig设置完了还要将网络服务重启service network restart即使互相可以ping通还是需要在linux里执行命令service iptables stop然后就可以用putty等ssh客户端进行远程访问了 阅读全文
posted @ 2011-01-18 13:27 Mose 阅读(346) 评论(0) 推荐(0) 编辑
摘要: WebErp增加Factor CompanyMain Menu-Setup-Payables-Maintain Factor Companies这个必须在新增供应商前设置(表factorcompanies)Factor CompanyFactoring is a form of financing in which a business sells its receivables to a third party or "factor company" at a discounted price. Under this arrangement, the factor agrees to 阅读全文
posted @ 2010-12-30 15:35 Mose 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 逆向工程(reversing engineering)1.脱壳(unpacking)Universal Extractorhttp://legroom.net/software/uniextractnsishttp://nsis.sourceforge.net/Main_Page看雪 邪恶八进制脱壳的艺术 阅读全文
posted @ 2010-11-26 09:49 Mose 阅读(228) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页