assume cs:code
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,97479,140417,197514
dd 345980,590827,803530,1183000,184300...
- [nbfengyi] 图在相册 10/22 22:02
- [nbfengyi] 图片在相册里 10/21 15:43
- [chinatree] 书上有讲。 10/04 12:30
- [12345678911] 第三问的解答我不懂什么回事能解释下吗 10/04 11:45
- [chinatree] 写出来就行了,不用太纠结。 09/29 21:00
- [nbfengyi] 用了一整个下午写这个程序,一开始就想到了循环,开始想外循环必有一次,内循环有4字节和2字节的,是不要 09/29 20:20
- [nbfengyi] 开始没有注意是四个字母 09/27 20:06
- [nbfengyi] 开始时: -d ds:0 144C:0000 31 2E 20 64 69 73 70 6C- 09/27 20:06
- [chinatree] 你不要拿半成品来糊弄自己好不好?! 09/27 17:50
- [nbfengyi] 受教了, 09/24 09:59
[2011-09-29 20:13] 实验七
阅读全文 |
评论次数(2) |
浏览次数(371) |
所属类型(汇编作业)
[2011-09-27 13:14] 实验六
assume cs:code,ds:data,ss:stack
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
data segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
data ends
code segment
start: mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
mov ...
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
data segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
data ends
code segment
start: mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
mov ...
阅读全文 |
评论次数(3) |
浏览次数(351) |
所属类型(汇编作业)
[2011-09-26 23:14] 实验五
(1)将下面的程序编译链接,用debug加载。跟踪。然后回答问题。
assume cs:code,ds:data,ss:stack
data segment
dw 0123h,0345h,0789h,0abch,0defh,0fedh,0cbah,0987h
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
code segment
start: mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
push ds:[0] ...
assume cs:code,ds:data,ss:stack
data segment
dw 0123h,0345h,0789h,0abch,0defh,0fedh,0cbah,0987h
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
code segment
start: mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
push ds:[0] ...
阅读全文 |
评论次数(0) |
浏览次数(219) |
所属类型(汇编作业)
[2011-09-19 21:16] 检测点6.1
(1)下面的程序实现依次用内存0:0~0:15单元中的内容改写程序中的数据,完成程序:
assume cs:codesg
codesg segment
dw 0123h,0456h,0789h,0abch,0defh,0csah,0987h
start: mov ax,0
mov ds,ax
mov bx,0
mov cx,8
s: mov ax,[bx]
mov cs:[bx],ax
add bx,2
loop s
mov ax,4c00h
int 21h
codesg ends
end s...
assume cs:codesg
codesg segment
dw 0123h,0456h,0789h,0abch,0defh,0csah,0987h
start: mov ax,0
mov ds,ax
mov bx,0
mov cx,8
s: mov ax,[bx]
mov cs:[bx],ax
add bx,2
loop s
mov ax,4c00h
int 21h
codesg ends
end s...
阅读全文 |
评论次数(0) |
浏览次数(186) |
所属类型(汇编作业)
[2011-09-18 14:08] 窃喜
一直看网上电子版的,感觉好伤眼,今天在当当上买了书,下周可能就到了,窃喜下,呵呵...
阅读全文 |
评论次数(7) |
浏览次数(400) |
所属类型(杂记)
[2011-09-17 08:25] 实验四
(1)和(2)向内存 0:200~0:23f依次传送数据0~63(3f)。
assume cs:code
code segment
mov ax,0020h
mov ds,ax
mov bx,0
mov cx,40h
s: mov ds:[bx],bl
inc bl
loop s
mov ax,4c00h
int 21h
code ends
end
上题在测试的时候,对于循环次数的问题,是3f还是40f终于有了自己的答案。是40f没错,因为汇编里cx等于0的时候就不运行了循环的程序了。所...
assume cs:code
code segment
mov ax,0020h
mov ds,ax
mov bx,0
mov cx,40h
s: mov ds:[bx],bl
inc bl
loop s
mov ax,4c00h
int 21h
code ends
end
上题在测试的时候,对于循环次数的问题,是3f还是40f终于有了自己的答案。是40f没错,因为汇编里cx等于0的时候就不运行了循环的程序了。所...
阅读全文 |
评论次数(0) |
浏览次数(231) |
所属类型(汇编作业)
[2011-09-14 21:56] 实验三
(1) 将下面的程序保存为t1.asm文件,将其生成可执行文件t1.exe。
assume cs:codesg
codesg segment
mov ax,2000h
mov ss,ax
mov sp,10
pop ax
pop bx
push ax
push bx
pop ax
pop bx
mov ax,4c00h
int 21h
codesg ends
end
(2) 用debug跟踪t1.exe的执行过程,写出没一步执行后,相关寄存器中的内容和栈顶的内容。
D:\text>debug t1.exe...
assume cs:codesg
codesg segment
mov ax,2000h
mov ss,ax
mov sp,10
pop ax
pop bx
push ax
push bx
pop ax
pop bx
mov ax,4c00h
int 21h
codesg ends
end
(2) 用debug跟踪t1.exe的执行过程,写出没一步执行后,相关寄存器中的内容和栈顶的内容。
D:\text>debug t1.exe...
阅读全文 |
评论次数(2) |
浏览次数(1225) |
所属类型(汇编作业)
[2011-09-14 10:33] 实验二
(1) 使用debug,将上面的程序写入内存,逐条执行,根据指令执行后的
实际运行情况填空。
mov ax,ffff
mov ds,ax
mov ax,2200
mov ss,ax
mov sp,0100
mov ax,[0] ;ax=5beah
add ax,[0] ;ax=5ccah
mov bx,[4] ;bx=30f0h
add bx,[6] ;bx=6023h
push ax ;sp=00feh ;修改的内存单元地址220fe/f修改内容5ccah
push bx ;sp=00fch ;修改的内存单元地址220f...
实际运行情况填空。
mov ax,ffff
mov ds,ax
mov ax,2200
mov ss,ax
mov sp,0100
mov ax,[0] ;ax=5beah
add ax,[0] ;ax=5ccah
mov bx,[4] ;bx=30f0h
add bx,[6] ;bx=6023h
push ax ;sp=00feh ;修改的内存单元地址220fe/f修改内容5ccah
push bx ;sp=00fch ;修改的内存单元地址220f...
阅读全文 |
评论次数(1) |
浏览次数(200) |
所属类型(汇编作业)
[2011-09-13 22:56] 检测点3.2
(1) 补全下面的程序,使其可以将10000h~1000fh中的8个字,逆序复制到20000h~2000fh中。
mov ax,1000h
mov ds,ax
mov ax,2000h
mov ss,ax
mov sp,0010h
push [0]
push [2]
push [4]
push [6]
push [8]
push [a]
push [c]
push [e]
(2) 补全下面的程序,使其可以将10000h~1000fh中的8个字,逆序复制到20000h~2000fh中。
mov ax,2000h
mov ds,ax
mov ax,10...
mov ax,1000h
mov ds,ax
mov ax,2000h
mov ss,ax
mov sp,0010h
push [0]
push [2]
push [4]
push [6]
push [8]
push [a]
push [c]
push [e]
(2) 补全下面的程序,使其可以将10000h~1000fh中的8个字,逆序复制到20000h~2000fh中。
mov ax,2000h
mov ds,ax
mov ax,10...
阅读全文 |
评论次数(0) |
浏览次数(539) |
所属类型(汇编作业)
[2011-09-10 01:21] 检测点3.1
(1)在debug中,用“d 0:0 1f”查看内存,结果如下。
0000:0000 70 80 f0 30 ef 60 30 e2-00 80 80 12 66 20 22 60
0000:0010 62 26 e6 d6 cc 2e 3c 3b-ab ba 00 00 26 06 66 88
下面程序执行钱,ax=0,bx=0
写出每条汇编指令执行完后相关寄存器中的值。
mov ax,1
mov ds,ax
mov ax,[0000] ax=2662h
mov bx,[0001] bx=e626h
mov ax,bx ax=e626h
mov ax...
0000:0000 70 80 f0 30 ef 60 30 e2-00 80 80 12 66 20 22 60
0000:0010 62 26 e6 d6 cc 2e 3c 3b-ab ba 00 00 26 06 66 88
下面程序执行钱,ax=0,bx=0
写出每条汇编指令执行完后相关寄存器中的值。
mov ax,1
mov ds,ax
mov ax,[0000] ax=2662h
mov bx,[0001] bx=e626h
mov ax,bx ax=e626h
mov ax...
阅读全文 |
评论次数(2) |
浏览次数(610) |
所属类型(汇编作业)