您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页《汇编语言》王爽第九章 实验九源码

《汇编语言》王爽第九章 实验九源码

来源:化拓教育网

​​​​​​​

 

assume cs:codesg,ds:datasg,ss:stacksg
datasg segment
    ;welcome to masm!    
db  'welcome to masm!'
    ;01234567abcdef
db  00000010b
db  00100100b
db  01110001b
datasg ends

stacksg segment
    db 128 dup(0)
stacksg ends

codesg segment
start:
    mov ax,stacksg
    mov ss,ax
    mov sp,128
    mov ax,datasg
    mov ds,ax
    mov ax,0b800H
    mov es,ax
    mov si,0
    mov bx,16;color
    mov di,160*10+32*2

    mov cx,3
s1: push cx
    push dx
    push si
    push di

    mov cx,16
    s:  mov dh,ds:[bx]
        mov dl,ds:[si]
        mov es:[di],dx
        add di,2
        inc si
        loop s 
    
    pop di
    pop si 
    pop dx
    pop cx
    add di,160;//换行
    inc bx ;//换颜色
loop s1

    mov ax,4c00H
    int 21H
codesg ends

end start   

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务