王爽 汇编语言 第六章 试验五(5)答案

网上找了个答案,但是发现不正确,自己写了个,调出来了.

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       ES,AX
              MOV       AX,c
              MOV       DS,AX
              MOV       BX,0
              MOV       CX,8
           s1:MOV       AL,ES:[BX]
              ADD       [BX],AL
              INC       BX
              LOOP      s1
              MOV       AX,b
              MOV       ES,AX
              MOV       BX,0
              MOV       CX,8
           s2:MOV       AL,ES:[BX]
              ADD       [BX],AL
              INC       BX
              LOOP      s2
              MOV       AX,4c00h
              INT       21h
              code ENDS
              END       start  

你可能感兴趣的:(王爽 汇编语言 第六章 试验五(5)答案)