文章分类 - x86汇编
摘要:思路: (1)编写子程序连续显示a~z (2)显示一个字符后,让字符停留几秒再显示下一个字符 (3)不安装int 9中断例程,而是直接修改向量表。(修改int 9向量表前要设置IF=0,修改后要设置IF=1) (4)在修改向量表之前要保存原有int 9例程的地址 (5)在自定义的中断例程中,需要调用
阅读全文
摘要:assume cs:code data segment db 10 dup (0) data ends code segment start: mov ax,12666 mov bx,data mov ds,bx mov si,0 call dtoc mov dh,8 mov dl,3 mov cl
阅读全文
摘要:assume cs:code code segment start: mov ax,4240h ; low 16 bit of dividend mov dx,000fh ; high 16 bit of dividend mov cx,0ah ; divisor call divdw mov ax
阅读全文
摘要:assume cs:code data segment db 'welcome to masm',0 data ends code segment start: mov dh,8 ; row number mov dl,3 ; col number mov cl,2 ; color mov ax,d
阅读全文
摘要:assume cs:code code segment start: mov ax,0 mov es,ax mov di,200h mov ax,cs mov ds,ax mov si,offset lp mov cx,offset lp_end - offset lp cld rep movsb
阅读全文
摘要:assume cs:code code segment start: mov ax,0 mov es,ax mov di,200h mov ax,cs mov ds,ax mov si,offset show_str mov cx,offset show_str_end - offset show_
阅读全文
摘要:1~8章:https://www.cnblogs.com/orangelsk/articles/16185577.html 转移指令的原理 转移指令用作单独修改IP或是同时修改CS和IP,为了让CPU执行我们指定的指令。 若只修改IP,则转移指令可分为: 段内短转移。IP修改范围为(-128~127
阅读全文
摘要:9~17章:https://www.cnblogs.com/orangelsk/articles/16282298.html 寄存器 数据在寄存器中的存储 8086的CPU是16位结构,其CPU内部总线的宽度是16,这意味着CPU内部的寄存器、运算器、控制器一次能传输、存储的最大数据为16位。 对于
阅读全文

浙公网安备 33010602011771号