assume cs:code
code segment
mov ax,cs
mov ds,ax
mov ax,0020h
mov es,ax
mov bx,0
mov cx,22d
s: mov al,[bx]
mov es:[bx],al
inc bx
loop s
mov ax,4c00h
int 21h
code ends
end...
- [游客] 正确。 04/29 09:35
- [游客] 程序OK。 04/29 09:33
- [zhenglxd] 这道题错了 mov cx,17H才对 不上机操作 想是不会出答案的 下面是结果 0020:00 04/29 09:26
- [游客] mov [bx],bx ------------- 这里写成 mov [bx],bl更合理,要 04/29 09:17
- [游客] 源代码中默认的就是十进制了,所以十进制数就没有必要在加d了。呵呵 继续前进吧! 04/29 08:44
[2009-04-27 21:43] 实验四(三)
阅读全文 |
评论次数(2) |
浏览次数(417) |
所属类型(汇编作业)
[2009-04-27 21:42] 实验四(一)
assume cs:code
code segment
mov cx,64d
mov ax,0200h
mov ds,ax
mov bx,0h
l: mov [bx],bx
inc bx
loop l
mov ah,4ch
int 21h
code ends
end...
code segment
mov cx,64d
mov ax,0200h
mov ds,ax
mov bx,0h
l: mov [bx],bx
inc bx
loop l
mov ah,4ch
int 21h
code ends
end...
阅读全文 |
评论次数(1) |
浏览次数(429) |
所属类型(汇编作业)
[2009-04-27 21:42] 实验十(一)
data segment
db 'welcome to masm !',0
data ends
code segment
assume cs:code
start: mov dh,8d
mov dl,3d
mov cl,2d
mov ax,data
mov ds,ax
mov si,0
call show_str
mov ah,4ch
int 21h
show_str:
push ax
push bx ...
db 'welcome to masm !',0
data ends
code segment
assume cs:code
start: mov dh,8d
mov dl,3d
mov cl,2d
mov ax,data
mov ds,ax
mov si,0
call show_str
mov ah,4ch
int 21h
show_str:
push ax
push bx ...
阅读全文 |
评论次数(1) |
浏览次数(431) |
所属类型(汇编作业)
[2009-04-27 21:41] 实验七
data segment
db '1975','1976','1977','1978','1979','1980','1981','1982','1983'
db '1984','1985','1986','1987','1988','1989','1990','1991','1992'
db '1993','1994','1995'
dd 16,22,382,1356,2390,8000,16000,24486,50065,87479,140417,197514
dd 345980,590827,803...
db '1975','1976','1977','1978','1979','1980','1981','1982','1983'
db '1984','1985','1986','1987','1988','1989','1990','1991','1992'
db '1993','1994','1995'
dd 16,22,382,1356,2390,8000,16000,24486,50065,87479,140417,197514
dd 345980,590827,803...
阅读全文 |
评论次数(1) |
浏览次数(439) |
所属类型(汇编作业)