. : : Assembly Language : : .  |  首页  |  我提出的问题  |  我参与的问题  |  我的收藏  |  消息中心   |  游客  登录  | 
刷新 | 提问 | 未解决 | 已解决 | 精华区 | 搜索 |
  《汇编语言》论坛 ->转移指令的原理
  管理员: assembly   [回复本贴] [收藏本贴] [管理本贴] [关闭窗口]
主题 : :  自己写的实验9的代码,大家进来交流一下  [待解决] 回复[ 1次 ]   点击[ 232次 ]  
shingdarkness
[帖 主]   [ 发表时间:2010-09-22 10:38 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2010-05-16 14:18
assume cs:codesg,ds:data

data segment
db 'welcome to masm!'
db 02h,24h,71h
data ends

codesg segment
start:mov ax,data
      mov ds,ax
      mov ax,0b800h
      mov es,ax
      mov bp,0720h
      mov si,0010h
      mov ax,3
   s0:mov bx,0
      mov cx,16
    s:mov dl,[bx]
      mov dh,[si]   
      mov es:[bp],dx
      inc bx
      add bp,2
      loop s
      mov cx,ax
      dec ax
      inc si
      add bp,128
      loop s0
 
      mov ax,4c00h
      int 21h
codesg ends
end start
revivedsun
[第1楼]   [ 回复时间:2010-10-02 21:54 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2010-10-02 13:13
我也写的

assume cs:code
    data segment
        db 'welcome to asm'
        db 0,71H,42H,2H
    data ends
    code segment      
  start:mov ax,0b878h           
        mov es,ax
        mov ax,data
        mov ds,ax
        mov di,4Ah
        mov bp,3    
      s:mov dh,[bp]
        mov cx,14
        mov si,0
     s0:mov dl,[si]
        mov es:[di],dx
        inc si
        add di,2
        loop s0
        add di,084h
        mov cx,bp
        dec bp
        loop s
        mov ax,4c00h
        int 21h
    code ends
end start
需要登录后才能回帖 -->> 请单击此处登录
    Copyright © 2006-2024   ASMEDU.NET  All Rights Reserved