上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: 开启 FTP Serversudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist关闭 FTP Serversudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist 阅读全文
posted @ 2014-03-14 15:45 galoishelley 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 必须引入此头文件#include #pragma comment(lib, "WINMM.LIB") 1 /*------------------------------------------------------------ 2 HELLOWIN.C -- Displays "Hello, Windows 98!" in client area 3 (c) Charles Petzold, 1998 4 ------------------------------------------------------------*/ 5 6 #in... 阅读全文
posted @ 2014-03-13 11:49 galoishelley 阅读(773) 评论(0) 推荐(0) 编辑
摘要: 1 ;在屏幕中间分别显示绿色,绿底红色,白底蓝色字符串"welcome to masm!" 2 assume cs:codesg,ds:datasg,ss:stacksg 3 datasg segment 4 db 'welcome to masm!' 5 db 02h,24h,71h 6 datasg ends 7 stacksg segment 8 db 8 dup(0) 9 stacksg ends10 codesg segment11 start: mov ax,datasg12 mov ds,ax13 14 ... 阅读全文
posted @ 2014-03-05 10:37 galoishelley 阅读(2963) 评论(0) 推荐(1) 编辑
摘要: 1- jcxz指令 指令为有条件转移指令, 所有的有条件转移指令都是短转移, 在对应的机器码中包含转移的位移, 而不是目的地址, 对IP的修改范围为: -128 ~ 127 指令格式: jcxz 标号(如果(cx) = 0 ,转移到标号处执行) 1 ;利用jcxz指令,现实在内存2000H段中查找第一个值为0的字节,找到后,将它的偏移地址存储在dx中. 2 assume cs:codesg 3 codesg segment 4 start: mov ax,2000H 5 mov ds,ax 6 mov bx,0 7 s: mov cl,[... 阅读全文
posted @ 2014-03-04 11:21 galoishelley 阅读(2990) 评论(0) 推荐(1) 编辑
摘要: 1- 以8位数据为例,无符号数编码的范围 0000 0000b-1111 1111b 0-255 255 = 2^8 -12- 有符号数编码 用8位数据的最高位表示符号位,0表示整, 1表示负 0000 0000 0 0000 0001 1 0000 0010 2 0111 1111 127 1000 0000 ? 1000 0001 -1 1000 0010 -2 1111 1111 -127 可见表示数的范围 -127 -- 1271000 0000 ? 无法表示 考虑用反码 0000 0000 0 1111 1111 ? 0000 0001 1 1... 阅读全文
posted @ 2014-03-01 10:29 galoishelley 阅读(846) 评论(0) 推荐(0) 编辑
摘要: 1- jmp为无条件转移指令,可以只修改IP, 也可以同时修改CS和IPjmp指令要给出两种信息:(1) 转移的目的地址(2) 转移的距离(段间转移, 段内转移, 段内近转移)2- 依据位移进行转移的jmp指令jmp short 标号(转到表号处执行指令) ;段内短转移 -128-1271 assume cs:codesg2 codesg segment3 start: mov ax,04 jmp short s5 add ax,16 s:inc ax7 codesg ends8 end start执行后 ax 0001H2- 根据位移进行转移的原理1 ... 阅读全文
posted @ 2014-02-28 16:52 galoishelley 阅读(2229) 评论(0) 推荐(0) 编辑
摘要: 1- 可以修改IP,或同时修改CS和IP的指令统称为转移指令.转移指令就是可以控制CPU执行内存中某处的代码指令8086CPU的转移行为有以下几类:(1) 只修改IP时,称为段内转移.比如:jmp ax.(2) 同时修改CP和IP时,称为段间转移,比如 jmp 1000:0由于转移指令对IP的修改范围不同,段内转移又分为:短转移和近转移(1) 短转移IP的修改范围-128-127(2) 近转移IP的修改范围-32768-327678086CPU的转移指令分为以下几类:(1) 无条件转移指令(jmp)(2) 条件转移指令(3) 循环指令(loop)(4) 过程(5) 中断2- 操作符offset 阅读全文
posted @ 2014-02-28 16:10 galoishelley 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1- div除法指令(1) 除数: 有8位和16位两种,在一个寄存器或内存单元中.(2) 被除数: 默认放在AX和DX或AX中 除数为8位, 被除数为16位, 默认在AX中存放. 除数为16位, 被除数为32位, 在DX或AX中存放. AX存放低16位,DX存放高16位.(3) 结果 除数为8位, 则AL存储除法操作的商, AH存放余数 除数为16为, 则AX存储除法操作的商, DX存放余数2- 格式如下 div reg div 内存单元 div byte ptr ds:[0] 含义为:(al) = (ax)/((ds)*16+0)的商 (ah) = (ax)/((ds... 阅读全文
posted @ 2014-02-27 16:14 galoishelley 阅读(5656) 评论(0) 推荐(1) 编辑
摘要: 1- 定义描述性符号:reg(表示一个寄存器)和sreg(表示一个段寄存器) reg的集合包括: ax, bx, cx, dx, ah, al, bh, bl, ch, cl, dh, dl, sp, bp, si, di; sreg的集合包括:ds, ss, cs, es2- bx, si, di, bp(1) 在8086CPU中, 只有这4个寄存器可以用在[...]中来进行内存单元寻址. mov ax,[bp] mov ax,[bp + si] mov ax,[bp + di] 错误的指令 mov ax,[ax] mov ax,[cx] mov ax,[dx] mov ... 阅读全文
posted @ 2014-02-27 13:02 galoishelley 阅读(330) 评论(0) 推荐(0) 编辑
摘要: [idata] 用一个常量来表示地址[bx] 用一个变量表示地址[bx+idata] 用一个变量和常量表示地址[bx+si] 用两个变量表示地址[bx+si+idata] 用两个变量和一个常量表示地址 1 ;将datasg段中每个单词的头一个字母改为大写字母 2 assume cs:codesg,ds:datasg 3 datasg segment 4 db '1. file ' 5 db '2. edit ' 6 db '3. search ' 7 db '4. view ' 8 db '5.... 阅读全文
posted @ 2014-02-27 10:17 galoishelley 阅读(535) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页