![点击查看原图](/blog/user/multimedia/lghstock/images/post_1218645591062_jpg-7218-300.jpg)
![学习动态](images/model1/b8.gif)
![最新评论](images/model1/b1.gif)
- [msc] assume cs:codesg,ds:data,es:table data seg 01/12 17:07
- [mouse] 答案见附注3 汇编编译器对jmp指令的相关处理 12/01 16:54
- [lghstock] 4是退出,0~3是功能4不涉及中断! 08/15 19:32
- [lghstock] 你的中断例,参考以下我的,看看是不是程序的入口和标号的默认问题!! 08/15 19:31
- [lghstock] 正在完成17的任务 08/15 19:29
- [lghstock] 你的中断出问题了,我第一次调也是! 08/15 19:27
- [游客] dingyixia 08/14 22:53
- [app] 程序有些问题,当第一次运行时,只有4可以运行,之后再运行,无法输入数字选项。 08/14 22:53
- [app] 快学完了,坚持到底! 08/14 22:46
- [tomato] 不错! 08/10 20:58
[2008-08-14 00:36] 实验16中断的演示程序
assume cs:code,ds:data,ss:stack
data segment
a db 'shuru error!'
b db '0-qingping',0
c db '1-qianjingse',0
d db '2-beijingse',0
e db '3-shangyihang',0
f db '4-tuichu',0
g db 'input:',0
h db 0B,02,03,04,05
k dw offset b,offset c,offset d,offset e,offset f,offset g
data e...
data segment
a db 'shuru error!'
b db '0-qingping',0
c db '1-qianjingse',0
d db '2-beijingse',0
e db '3-shangyihang',0
f db '4-tuichu',0
g db 'input:',0
h db 0B,02,03,04,05
k dw offset b,offset c,offset d,offset e,offset f,offset g
data e...
阅读全文 |
评论次数(4) |
浏览次数(543) |
所属类型(汇编作业)
[2008-08-14 00:32] 实验16 编写包含多个功能子程序的中断例程序
中断例程序:int 7ch 程序如下:
assume cs:code
code segment
start:mov ax,cs ;安装int-7ch中断例程
mov ds,ax
mov ax,0
mov es,ax
mov si,offset setscreen
mov di,200h
mov cx,offset endscreen-offset setscreen
cld
rep movsb
mov ax,0 ;...
assume cs:code
code segment
start:mov ax,cs ;安装int-7ch中断例程
mov ds,ax
mov ax,0
mov es,ax
mov si,offset setscreen
mov di,200h
mov cx,offset endscreen-offset setscreen
cld
rep movsb
mov ax,0 ;...
阅读全文 |
评论次数(3) |
浏览次数(509) |
所属类型(汇编作业)
[2008-08-10 12:59] 实验15 安装新的中断例程
assume cs:code
stack segment
db 128 dup (0)
stack ends
code segment
start:mov ax,stack
mov ss,ax
mov sp,128
push cs
pop ds
mov ax,0
mov es,ax
mov si,offset int9
mov di,204h
mov cx,offset int9end-offset int9
c...
stack segment
db 128 dup (0)
stack ends
code segment
start:mov ax,stack
mov ss,ax
mov sp,128
push cs
pop ds
mov ax,0
mov es,ax
mov si,offset int9
mov di,204h
mov cx,offset int9end-offset int9
c...
阅读全文 |
评论次数(1) |
浏览次数(458) |
所属类型(汇编作业)
[2008-08-10 12:58] 15章作业
检测点15.1
(1)
pushf
call dword ptr ds:[0]
(2)
.....
cli
mov word ptr es:[9*4],offset int9
mov es:[9*4+2],cs
sti
.......
(1)
pushf
call dword ptr ds:[0]
(2)
.....
cli
mov word ptr es:[9*4],offset int9
mov es:[9*4+2],cs
sti
.......
阅读全文 |
评论次数(1) |
浏览次数(523) |
所属类型(汇编作业)
[2008-08-08 11:42] 实验14
assume cs:code,ds:data,ss:stack
stack segment
db 16 dup (0)
data segment
db 32 dup (0)
data ends
code segment
start:mov ax,data
mov ds,ax
mov byte ptr ds:[1fh],9 ;读取年月日
mov si,0
mov cx,3
s10:push cx
call duqu
pop cx
dec byte ptr ds:[1...
stack segment
db 16 dup (0)
data segment
db 32 dup (0)
data ends
code segment
start:mov ax,data
mov ds,ax
mov byte ptr ds:[1fh],9 ;读取年月日
mov si,0
mov cx,3
s10:push cx
call duqu
pop cx
dec byte ptr ds:[1...
阅读全文 |
评论次数(2) |
浏览次数(451) |
所属类型(汇编作业)
[2008-08-08 09:41] 14章检测点作业
检测点14.1
(1)
assume cs:code
code segment
start:mov al,2
out 70h,al
in al,71h
mov ax,4c00h
int 21h
code ends
end start
(2)
assume cs:code
code segment
start:mov al,2
out 70h,al
mov al,0
out 71h,al
mov 4c00h
int 21h
code e...
(1)
assume cs:code
code segment
start:mov al,2
out 70h,al
in al,71h
mov ax,4c00h
int 21h
code ends
end start
(2)
assume cs:code
code segment
start:mov al,2
out 70h,al
mov al,0
out 71h,al
mov 4c00h
int 21h
code e...
阅读全文 |
评论次数(1) |
浏览次数(433) |
所属类型(汇编作业)
[2008-08-07 17:28] 实验13 作业
(1)中断例程
assume cs:code
code segment
start:mov ax,cs ;中断安装
mov ds,ax
mov si,offset zdbegin
mov ax,0
mov es,ax
mov di,200h
mov cx,offset zdend-zdbegin
cld
rep movsb
mov ax,0 ;设置中断向量表项
mov ds,ax
...
assume cs:code
code segment
start:mov ax,cs ;中断安装
mov ds,ax
mov si,offset zdbegin
mov ax,0
mov es,ax
mov di,200h
mov cx,offset zdend-zdbegin
cld
rep movsb
mov ax,0 ;设置中断向量表项
mov ds,ax
...
阅读全文 |
评论次数(1) |
浏览次数(434) |
所属类型(汇编作业)
[2008-08-05 23:00] 检测点13.1 作业
(1)最大转移位移为ffffh
(2)中断例程:
assume cs:code
code segment
start:mov ax,cs
mov ds,ax
mov si,offset cbegin
mov ax,0
mov es,ax
mov di,200h
mov cx,offset cend-offset cbegin
cld
rep movsb
mov ax,0
mov ds,ax
mov word ptr ds:[7...
(2)中断例程:
assume cs:code
code segment
start:mov ax,cs
mov ds,ax
mov si,offset cbegin
mov ax,0
mov es,ax
mov di,200h
mov cx,offset cend-offset cbegin
cld
rep movsb
mov ax,0
mov ds,ax
mov word ptr ds:[7...
阅读全文 |
评论次数(1) |
浏览次数(406) |
所属类型(汇编作业)
[2008-08-05 11:59] 检测点12.1
(1)0070:018b
(2)n*4 n*4+2...
(2)n*4 n*4+2...
阅读全文 |
评论次数(1) |
浏览次数(394) |
所属类型(汇编作业)
[2008-08-05 11:29] 实验12 编写0号中断的处理程序--do0
assume cs:code
code segment
start:mov ax,cs
mov ds,ax
mov si,offset do0
mov ax,0
mov es,ax
mov di,200h
mov cx,offset do0end-offset do0
cld
rep movsb
mov ax,0
mov es,ax
mov word ptr es:[0],0200h
mov word ptr es:[2],...
code segment
start:mov ax,cs
mov ds,ax
mov si,offset do0
mov ax,0
mov es,ax
mov di,200h
mov cx,offset do0end-offset do0
cld
rep movsb
mov ax,0
mov es,ax
mov word ptr es:[0],0200h
mov word ptr es:[2],...
阅读全文 |
评论次数(1) |
浏览次数(212) |
所属类型(汇编作业)