2018年2月4日

知识记忆3:散记

摘要: 1 cli:设置IF=0(禁止可屏蔽中断程序) 2 sti:设置IF=1(处理可屏蔽中断程序) 3 4 不可屏蔽中断执行过程: 5 中断类型码固定为2 6 1.标志寄存器入栈,IF=0,TF=0 7 2.CS、IP入栈 8 3.(IP)=(8),(CS)=(0AH) 9 10 扫描码的寄存器端口地址为60h 11 断码=通码+80h 12 13 BIOS键缓冲区,用于存放... 阅读全文

posted @ 2018-02-04 21:37 叶倾仙 阅读(146) 评论(0) 推荐(0) 编辑

汇编程序51:检测点15.1(2)

摘要: 1 assume cs:code 2 ;安装程序,接受按键事件,变化颜色 3 code segment 4 start: 5 mov ax,cs 6 mov ds,ax 7 mov si,offset sub1 8 mov ax,0020h 9 mov es,ax 10 ... 阅读全文

posted @ 2018-02-04 20:20 叶倾仙 阅读(263) 评论(0) 推荐(0) 编辑

汇编程序50:检测点15.1(1)

摘要: 1 assume cs:code 2 ;在屏幕处显示字符'a'变化到'z',并随时接受按键esc变化其颜色属性 3 stack segment 4 db 128 dup(0) 5 stack ends 6 7 data segment 8 dw 0,0 9 data ends 10 11 code segment 12 start: 13 ... 阅读全文

posted @ 2018-02-04 20:13 叶倾仙 阅读(497) 评论(0) 推荐(0) 编辑

汇编程序49:实验14 访问CMOS RAM(显示系统时间)

摘要: 1 assume cs:code 2 ;安装程序,使用指令out和in指令 3 code segment 4 start: 5 mov ax,cs 6 mov ds,ax 7 mov si,offset sub1 8 mov ax,0020h 9 mov es,ax 10... 阅读全文

posted @ 2018-02-04 11:47 叶倾仙 阅读(480) 评论(0) 推荐(0) 编辑

汇编程序48:检测点14.2

摘要: 1 assume cs:code 2 //计算(ax)=(ax)*10,使用shl指令 3 code segment 4 start: 5 mov ax,2h ;预设值 6 push ax ;为使预设值不变 7 mov cl,3 ;设置左移的位数3 8 shl ax,cl ... 阅读全文

posted @ 2018-02-04 10:53 叶倾仙 阅读(220) 评论(0) 推荐(0) 编辑

汇编程序47:实验13 编写、应用中断例程(3)

摘要: 1 assume cs:code 2 //将数据段的内容显示在适当的屏幕位置上 3 code segment 4 s1: db 'Good,better,best,','$' 5 s2: db 'Never let it rest,','$' 6 s3: db 'Till good is better,','$' 7 s4: db '... 阅读全文

posted @ 2018-02-04 00:03 叶倾仙 阅读(192) 评论(0) 推荐(0) 编辑

导航