摘要: 活着就要不停完善,提高自己,使自己完美! 不是一些简单满足. 阅读全文
posted @ 2014-02-11 15:07 galoishelley 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1- 段前缀 mov ax,ds:[bx] mov ax,cs:[bx] mov ax,ss:[bx] mov ax,es:[bx] mov ax,ss:[0] mov ax,cs:[0]这些出现在访问内存单元的指令中,用于显式的指明内存单元的段地址的"ds,cs,ss,es"在汇编语言中称为段前缀2- 一段安全的空间在8086模式中,随意向一段内存空间写入内容是很危险的,因为这段内存空间可能存放着重要的代码或数据. 1 assume cs:code 2 code segment 3 mov ax,0 4 mov ds,ax 5 mov ds:[26H],a... 阅读全文
posted @ 2014-02-11 11:50 galoishelley 阅读(846) 评论(0) 推荐(0) 编辑
摘要: masm5.0编辑器,汇编语言注释(1) 单行注释用;,注释行之前使用英文状态下的分号; mov al,ds:[6] ;内存ds:[6]的内容送入al中 (2) 批量,多行注释 comment * * comment 成对出现 1 assume cs:code 2 code segment 3 mov ax,0ffffH 4 mov ds,ax 5 mov bx,0 6 7 mov dx,0 8 9 comment *10 mov cx,1211 s:mov al,[bx]12 mov ah,01... 阅读全文
posted @ 2014-02-11 11:14 galoishelley 阅读(2293) 评论(0) 推荐(0) 编辑
摘要: ffff:0-ffff:d内存中数值求和放入dx寄存器中代码:add.asm 1 assume cs:code 2 code segment 3 mov ax,0ffffH 4 mov ds,ax 5 6 mov dx,0 7 8 mov al,ds:[0] 9 mov ah,010 add dx,ax11 12 mov al,ds:[1]13 mov ah,014 add dx,ax15 16 mov al,ds:[2]17 mov ah,018 add dx,... 阅读全文
posted @ 2014-02-11 10:51 galoishelley 阅读(1371) 评论(0) 推荐(0) 编辑