汇编网首页登录博客注册
ondy的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  

[2008-08-16 14:36] 根据材料编程

点击查看原图
assume cs:codesg,ds:datasg,ss:stack
datasg segment
        db'welcome to masm!'
        db 42h,24h,71h        ;三种颜色 
datasg ends
stack segment 
        dw 0,0,0,0,0,0,0,0
stack ends
codesg segment
start:
        mov ax,datasg
        mov ds,ax
        mov ax,stack
        mov ss,ax
        mov sp,16
        mov bp,0
        mov si,16  ;颜色的值
        mov ax,0b...
阅读全文 | 评论次数(2) | 浏览次数(457) | 所属类型(默认类型)

[2008-08-12 09:26] C语言实现实验7

#include<stdio.h>
struct gongsi
{
        int year;
        int shouru;
        int people;
}dec[21];
void Input(struct gongsi dec2[])
{
        //输入
        for(int i=0;i<3;i++)
        {
                printf("year:");
                scanf("%d",&dec2[i].year);
                printf("shouru:");
                scanf("%d",&dec2[i].shouru);
                printf("people:");
                scanf("%d",&d...
阅读全文 | 评论次数(0) | 浏览次数(362) | 所属类型(默认类型)

[2008-08-11 17:19] 实验七

点击查看原图
assume cs:codesg
data segment
        db '1975','1976','1977','1978','1979','1980','1981','1982','1983'
        db '1984','1985','1986','1987','1988','1989','1990','1993','1994'
        db '1995','1991','1992'
        ;以上是表示21年的21个字符串
         dd 16,22,382,1356,2390,8000,16000,24486,50065,97479,140417,197514 
           dd 345980,590...
阅读全文 | 评论次数(0) | 浏览次数(377) | 所属类型(默认类型)

[2008-08-10 16:54] 实验6

点击查看原图
assume cs:codesg,ds:datasg,ss:stack
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
datasg segment
db '1. display      '
db '2. brows        '
db '3. replace      '
db '4. modify       '
datasg ends   ; 以上是定义一个数据段
codesg segment
start:
        mov ax,stack 
        mov ss,ax 
        mov sp,16 
        mov ax,datasg...
阅读全文 | 评论次数(0) | 浏览次数(380) | 所属类型(默认类型)

[2008-08-07 18:25] 实验5的一点小问题

第五题,实现 a,b相加存放到c里
assume cs:code  
a segment  
    db 1,2,3,4,5,6,7,8  
a ends  
b segment  
    db 1,2,3,4,5,6,7,8  
b ends  
c segment  
    db 0,0,0,0,0,0,0,0  
c ends  
code segment  
start:     
    mov ax,a  
    mov ds,ax  
    mov bx,0  
    mov cx,8  
s:  mov al,[bx]    ;因为...
阅读全文 | 评论次数(2) | 浏览次数(447) | 所属类型(默认类型)

[2008-08-06 14:36] 实验4

点击查看原图
assume cs:codesg
codesg segment
mov ax,0000
mov ds,ax
mov bx,200H
mov al,0 ;记录0-64
mov cx,64
s:
mov [bx],al
inc bx
inc al
loop s
mov ax,4c00h
int 21h
codesg ends
end

 第二题
向内存0:200-0:23F送入数据0-63(3FH),只能用9条指领
assume cs:codesg
codesg segment
mov bx,0000 ;因为物理地址是:00200
mov ds,bx
...
阅读全文 | 评论次数(1) | 浏览次数(450) | 所属类型(默认类型)