assume cs:code
data segment
db '1975','1976','1977','1978','1979','1980','1981','1982','1983','1984','1985','1986','1987','1988'
db '1989','1990','1991','1992','1993','1994','1995' ;年份
dd 16,22,382,1356,2390,8000,16000,24486,50065,97479,140417,197514
dd 345980,590827,...
- [fenglixin70953] assume cs:code ;实验14,显示当前日期,时间 code segment 09/28 09:54
- [fenglixin70953] assume cs:code data segment db '1975','1976 09/16 17:38
- [fenglixin70953] 看了论坛的贴子,终于会了 assume cs:code code segment 05/06 18:41
- [游客] 谢谢楼上改下面这样可以成功,但用直接定址表如何实现拷贝后子程序中sub标号的定位呢。没想出来。 a 05/04 13:55
- [游客] 中断例程中的的call自己例程中子程序,应该是用jmp基于偏移变量跳转,而不能单纯的call,因为子 05/03 18:48
- [游客] table dw sub1,sub2,sub3,sub4 ------- 定址表应该用偏移距离 05/03 18:43
- [fenglixin70953] s: mov dl,0 mov cx,49 s5: pus 04/28 11:01
- [hychewei] 看不懂!!能讲讲不?还有为什么没有那么伪代码? 04/23 22:23
- [fenglixin70953] 呵 04/17 22:20
- [wdm] 不错。不过,程序没有注释和分析,就会像僵尸一样干瘪啊。 04/17 20:01
[2008-09-16 17:37] 课程1两种实现方法
阅读全文 |
评论次数(1) |
浏览次数(445) |
所属类型(作业)
[2008-05-03 16:05] 实验16运行弹出错,请指点哪错了
assume cs:code
code segment
start:mov ax,cs
mov ds,ax
mov ax,0
mov es,ax
mov si,offset setscreen
mov di,200h
mov cx,offset setscreenend-offset setscreen
cld
rep movsb
mov word ptr es:[7ch*4],200h
mov word ptr es:[7ch*4+2],0
...
code segment
start:mov ax,cs
mov ds,ax
mov ax,0
mov es,ax
mov si,offset setscreen
mov di,200h
mov cx,offset setscreenend-offset setscreen
cld
rep movsb
mov word ptr es:[7ch*4],200h
mov word ptr es:[7ch*4+2],0
...
阅读全文 |
评论次数(4) |
浏览次数(480) |
所属类型(作业)
[2008-04-17 18:49] 15章全屏显A-Z
assume cs:code
stack segment
db 128 dup(0)
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,128
mov ax,0b800h
mov es,ax
mov ah,'A'
s:
mov dl,0
mov cx,49
s5: push cx
push ax
mov al,160
mul ...
stack segment
db 128 dup(0)
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,128
mov ax,0b800h
mov es,ax
mov ah,'A'
s:
mov dl,0
mov cx,49
s5: push cx
push ax
mov al,160
mul ...
阅读全文 |
评论次数(3) |
浏览次数(505) |
所属类型(作业)
[2008-04-16 22:56] 实验14显示时间
assume cs:code
code segment
s: db 9,8,7,4,2,0
start:mov ax,cs
mov ds,ax
mov si,offset s
mov di,0
mov cx,6
s1:push cx
mov al,[si]
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
...
code segment
s: db 9,8,7,4,2,0
start:mov ax,cs
mov ds,ax
mov si,offset s
mov di,0
mov cx,6
s1:push cx
mov al,[si]
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
...
阅读全文 |
评论次数(3) |
浏览次数(541) |
所属类型(作业)
[2008-04-16 17:40] 14_2
assume cs:code
code segment
start: mov ax,3
mov bx,ax
add bx,ax
mov cl,3
shl ax,cl
add ax,bx
mov ah,4ch
mov al,00h
int 21h
code ends
end start...
code segment
start: mov ax,3
mov bx,ax
add bx,ax
mov cl,3
shl ax,cl
add ax,bx
mov ah,4ch
mov al,00h
int 21h
code ends
end start...
阅读全文 |
评论次数(3) |
浏览次数(443) |
所属类型(作业)